nolo-cli 0.95.0-alpha.6 → 0.95.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.
Files changed (181) hide show
  1. package/README.md +1 -1
  2. package/{_executeModel-AUQRMRWL.js → _executeModel-2A5AFVBG.js} +67 -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-4BAHJRU3.js → agentDeleteCommand-QYCCUQ35.js} +47 -43
  7. package/{agentEmailCommands-QISOY7Y6.js → agentEmailCommands-IX6COKHS.js} +89 -82
  8. package/{agentListCommands-U46ODMQU.js → agentListCommands-JDU7V3M5.js} +77 -82
  9. package/{agentMachineCommands-EHV2KM2C.js → agentMachineCommands-W36VFO5M.js} +42 -38
  10. package/{agentProviderCommands-GNPTL5XR.js → agentProviderCommands-YK2BIIXZ.js} +1 -1
  11. package/{agentPullCommand-O5MPVJ5E.js → agentPullCommand-HF4A42D4.js} +1 -1
  12. package/agentRecordCommands-JGOTOBTW.js +135 -0
  13. package/{agentRunCommand-K4CLMA6B.js → agentRunCommand-LJBG6YF2.js} +89 -80
  14. package/{agentRunControl-XLGD3UZ5.js → agentRunControl-5T64LM2M.js} +2 -2
  15. package/{agentRuntimeLocal-O4HPUJA4.js → agentRuntimeLocal-SYLNOKCT.js} +44 -36
  16. package/{agentSlice-ZYT2OUR3.js → agentSlice-FZ7GGQM2.js} +11 -11
  17. package/{appDeleteCommands-R5BBTKQK.js → appDeleteCommands-IP22BHZE.js} +42 -38
  18. package/{appDeployCommands-ZJIXOJWD.js → appDeployCommands-5ZTQL6UL.js} +42 -38
  19. package/{appDeployStatusCommands-B3R2ZTBF.js → appDeployStatusCommands-G6EMAT75.js} +42 -38
  20. package/{appGetCommands-2AQSOV2A.js → appGetCommands-UXBDAYEM.js} +42 -38
  21. package/{appListCommands-HCIJGZFY.js → appListCommands-J274GTVP.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-ZMF6YGNO.js} +6 -5
  25. package/{chatQueueReduxAdapter-Q5V4YJVI.js → chatQueueReduxAdapter-PRP4YQP7.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-2QZTQEW4.js +13349 -0
  30. package/{chunk-JEDZAO7L.js → chunk-2SYTUTLI.js} +257 -37
  31. package/{chunk-OIVSQH2O.js → chunk-3BXNTXYI.js} +299 -5
  32. package/{chunk-ZLR5JN3E.js → chunk-4B4DAAFV.js} +7 -7
  33. package/{chunk-EYAQT56M.js → chunk-4DPP773Q.js} +2 -2
  34. package/chunk-4LCOCOR5.js +50 -0
  35. package/{chunk-BZWBEHGD.js → chunk-4MPGAOXS.js} +66 -38
  36. package/{chunk-JOHSKZQX.js → chunk-4RTK7EHT.js} +865 -207
  37. package/{chunk-2GRGFCF6.js → chunk-4VJAC32I.js} +2 -1
  38. package/{chunk-MC4XLIJ7.js → chunk-523DITKR.js} +1 -1
  39. package/{chunk-IAO6JBYW.js → chunk-5B7XS6UO.js} +164 -14
  40. package/{chunk-E4MARS3Q.js → chunk-5GVBDNTO.js} +1 -1
  41. package/chunk-5J3PYNUP.js +255 -0
  42. package/chunk-5MMAK75Q.js +15 -0
  43. package/{chunk-JPGCXHNM.js → chunk-5OA5HMTL.js} +1 -1
  44. package/{chunk-42V6BK2E.js → chunk-62IL3KQV.js} +4 -34
  45. package/{chunk-YQTQQX2H.js → chunk-67HHBCFJ.js} +1 -1
  46. package/{chunk-SNPMM7H3.js → chunk-67T7O467.js} +13 -13
  47. package/{chunk-6YTOJY35.js → chunk-6D2JFXLY.js} +35 -0
  48. package/{chunk-4MY4GLIW.js → chunk-6IHBIRPK.js} +969 -1090
  49. package/{chunk-3BMYXEUW.js → chunk-6O4IK4V2.js} +1 -1
  50. package/{chunk-XOVEWFLK.js → chunk-6RDFAKG7.js} +100 -100
  51. package/{chunk-DHDMC6FO.js → chunk-6TPOEJMQ.js} +9 -4
  52. package/{chunk-WADCY6G6.js → chunk-6ZWMH6TJ.js} +111 -41
  53. package/{chunk-ABQYVJBJ.js → chunk-7CHC4W22.js} +1 -1
  54. package/{chunk-GQBOR3G6.js → chunk-7KVZ5LDQ.js} +2 -2
  55. package/{chunk-OA6Q2A4I.js → chunk-A7RSPKU6.js} +98 -22
  56. package/{chunk-KQ4ONNQD.js → chunk-ALFH24P3.js} +56 -7
  57. package/{chunk-Q554LLSI.js → chunk-AUDNYVRC.js} +1 -1
  58. package/{chunk-GPCZ7UXG.js → chunk-AZRHIN5B.js} +1 -1
  59. package/{chunk-JRQFUXY7.js → chunk-B2XUQXQX.js} +96 -19
  60. package/{chunk-EGSKXKR5.js → chunk-BJJL5DZF.js} +1 -1
  61. package/chunk-BMQ2MJUK.js +153 -0
  62. package/{chunk-XRWZB6CF.js → chunk-BVWTQJAA.js} +23 -76
  63. package/{chunk-3IIEFNGY.js → chunk-C53ZG23R.js} +2 -2
  64. package/chunk-CHOZJMJS.js +78 -0
  65. package/{chunk-HJUYAD4A.js → chunk-CPUFH46E.js} +8 -8
  66. package/{chunk-LS2ZANRJ.js → chunk-CTUQJVQM.js} +1 -1
  67. package/{chunk-BP4XNZRM.js → chunk-CU3QB4HW.js} +3 -3
  68. package/{chunk-ACTMNVHM.js → chunk-CYSYR67N.js} +1 -1
  69. package/{chunk-VLTIYV3X.js → chunk-DCLMZ5TX.js} +4 -4
  70. package/{chunk-UKZDAFYT.js → chunk-DSSTTEKI.js} +6 -10
  71. package/{chunk-HVURBGF3.js → chunk-ESRMFY7G.js} +2 -2
  72. package/{chunk-TRV2MIDW.js → chunk-EXAJ6DCR.js} +1 -0
  73. package/chunk-GMZLP5DV.js +82 -0
  74. package/{chunk-FDTR4QJ6.js → chunk-H6A6X4EK.js} +32 -1
  75. package/{chunk-DVINR3PL.js → chunk-HDLLCBRF.js} +1 -1
  76. package/{chunk-ONXOABJR.js → chunk-HNGRBWYF.js} +3 -0
  77. package/{chunk-H62HCIUP.js → chunk-HYZIYH2H.js} +11 -10
  78. package/{chunk-MMPXJXHT.js → chunk-HZH7RULB.js} +582 -478
  79. package/{chunk-NTW5GWDM.js → chunk-I3QNET24.js} +32 -17
  80. package/{chunk-WV42OMV7.js → chunk-IAESIMK7.js} +4 -4
  81. package/{chunk-QIAVMDHY.js → chunk-IUVCUGQR.js} +4 -4
  82. package/{chunk-AFDS2CVM.js → chunk-K5UOP7AI.js} +15 -20
  83. package/{chunk-IIVGDG4I.js → chunk-LNPYTNMG.js} +8 -4
  84. package/{chunk-BLJWCTRL.js → chunk-LVITW736.js} +1 -1
  85. package/chunk-LYS4T7MY.js +7600 -0
  86. package/{chunk-76WEAXJB.js → chunk-M3LRSBOX.js} +18 -15
  87. package/{chunk-7S4YWN7P.js → chunk-MX574M24.js} +1 -1
  88. package/{chunk-FZGV4FGK.js → chunk-NUHHBEJC.js} +378 -187
  89. package/{chunk-53HEEOTT.js → chunk-O26PCYLS.js} +80 -13
  90. package/{chunk-3DII57IT.js → chunk-O2OWEFII.js} +1 -1
  91. package/chunk-OCZKATRC.js +129 -0
  92. package/{chunk-6D6VBVEW.js → chunk-OTEMQQZI.js} +80 -14
  93. package/chunk-P6GMCCAT.js +870 -0
  94. package/{chunk-CPH3W5A7.js → chunk-Q4GP72HX.js} +94 -3
  95. package/{chunk-A6G32FNX.js → chunk-QYFBT4CV.js} +13 -13
  96. package/{chunk-Z77CRGTW.js → chunk-R4SQ3LGW.js} +1 -1
  97. package/{chunk-DEUUPHOO.js → chunk-RKGKDQGJ.js} +74 -17
  98. package/{chunk-ZXKVPF4K.js → chunk-RQNHAVSR.js} +236 -36
  99. package/{chunk-LLT642J4.js → chunk-RS4XOX6Y.js} +24 -5
  100. package/{chunk-V4MJDUSR.js → chunk-RSEEDUMS.js} +2 -2
  101. package/{chunk-UZGQNTVW.js → chunk-S5XGT6GB.js} +5 -3
  102. package/{chunk-AFUORTY4.js → chunk-SONWNI3L.js} +21 -21
  103. package/{chunk-BYMV6QZG.js → chunk-TNIX77YM.js} +4 -0
  104. package/{chunk-OF7AQZUG.js → chunk-TU5NE4U3.js} +9 -84
  105. package/chunk-TY3TIUJK.js +89 -0
  106. package/chunk-UNYJU5L6.js +780 -0
  107. package/{chunk-J4MOO56S.js → chunk-UQNS32WZ.js} +10 -2
  108. package/chunk-VIWDGTDA.js +8 -0
  109. package/chunk-VJVNU77E.js +83 -0
  110. package/{chunk-JAXOVNM4.js → chunk-WILHZY7K.js} +45 -45
  111. package/{chunk-BGSLKVCP.js → chunk-WIU4KIBL.js} +6 -7
  112. package/{chunk-UKWGR5SS.js → chunk-WIWM4FE3.js} +187 -398
  113. package/{chunk-O6OSWFZQ.js → chunk-XUWRURDF.js} +6 -0
  114. package/{chunk-Q67DOFOO.js → chunk-Y3PMXGLH.js} +2 -0
  115. package/{chunk-SH43IESU.js → chunk-YUNJN43V.js} +44 -9
  116. package/{chunk-TOP2VXOR.js → chunk-Z4CSIXYP.js} +2 -2
  117. package/{chunk-2F7RJC6L.js → chunk-ZOVKKMF6.js} +1 -1
  118. package/chunk-ZRAU6T47.js +56 -0
  119. package/commandRegistry-ESFYIRF4.js +833 -0
  120. package/{contentThunks-PT23JWJX.js → contentThunks-ECQ6KK3I.js} +32 -30
  121. package/{cooldownCommands-REAWYVTY.js → cooldownCommands-ZLEPIB4A.js} +2 -2
  122. package/{createAgentAutomationAction-N27SYTLU.js → createAgentAutomationAction-6EES5YQO.js} +32 -30
  123. package/{createDialogAction-XZPLHD5G.js → createDialogAction-JTKMM4VG.js} +36 -33
  124. package/{createPageAction-KHVJQ3CS.js → createPageAction-WQZTMGAG.js} +38 -36
  125. package/{chunk-3SJQXXGY.js → cursorProvider-YGGNMVWX.js} +2560 -9879
  126. package/{dbSlice-XVWBAGYN.js → dbSlice-DQ32LYTJ.js} +8 -8
  127. package/{deleteFile-YG6QMJLU.js → deleteFile-NX6QHCWZ.js} +3 -3
  128. package/{dialogCommands-ZUWW5UT6.js → dialogCommands-XXZH5K6U.js} +45 -41
  129. package/{dialogSlice-3YH242HS.js → dialogSlice-I6GN3I5B.js} +36 -29
  130. package/{dist-VODFSGNG.js → dist-NJC2W7I4.js} +61 -54
  131. package/{docCreateCommands-Q6FADDSJ.js → docCreateCommands-FLNUDWG6.js} +44 -40
  132. package/{docDeleteCommands-ZKIH54PZ.js → docDeleteCommands-74OURFAB.js} +44 -40
  133. package/{docReadCommands-7BZT2QTW.js → docReadCommands-QENWDQVH.js} +43 -39
  134. package/{docStore-YSZRNUUD.js → docStore-B2ZM4PCR.js} +11 -10
  135. package/{docUpdateCommands-WJXWTRL7.js → docUpdateCommands-J4HWJ5JO.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-KJO2QDBM.js → handleSendMessageAction-BAUWHASB.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-QC4TD7GJ.js → machineCommands-SG3QGVOP.js} +84 -77
  144. package/{machineWsRunDispatch-XUOIAXO7.js → machineWsRunDispatch-RTFT3ZDL.js} +81 -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-DD6NGWW6.js} +7 -7
  153. package/{providerRegistry-757OWH3O.js → providerRegistry-XDRLMYGJ.js} +7 -7
  154. package/{read-COE3ZYR6.js → read-EPTJRAEF.js} +5 -5
  155. package/{readDocTool-5USN4A6V.js → readDocTool-W4NDXNEX.js} +5 -3
  156. package/{readlineWorkspace-74TXXSLO.js → readlineWorkspace-MCNBLA56.js} +2449 -2022
  157. package/{removeDialogAgentAction-IX3MN2ZO.js → removeDialogAgentAction-BVAWQKXE.js} +17 -19
  158. package/{runAgentClientLoop-37BXJD62.js → runAgentClientLoop-XDPBFXV2.js} +61 -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-P3ONT6LL.js → spaceCommands-BYDGOMW7.js} +44 -40
  166. package/{streamAgentChatTurn-FGXQXALU.js → streamAgentChatTurn-BBH3QDEZ.js} +183 -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-R5UF2KZO.js → tools-OQWSBQJA.js} +54 -51
  171. package/{tuiSummaryLlmCaller-T2SHYMDZ.js → tuiSummaryLlmCaller-74NRRLVW.js} +18 -16
  172. package/{updateCommands-2M74UL7P.js → updateCommands-4EHDLF5J.js} +3 -3
  173. package/{updateDialogTitleAction-RTADGV7A.js → updateDialogTitleAction-E25IG3J3.js} +81 -43
  174. package/agentRecordCommands-SIPURU2S.js +0 -128
  175. package/chunk-FOWEGIMF.js +0 -18881
  176. package/chunk-M76ECQRD.js +0 -13658
  177. package/chunk-Q5FJJ6XI.js +0 -103
  178. package/chunk-S7Z2HMCN.js +0 -25
  179. package/{chunk-VMFTFOWF.js → chunk-3AH7LNUB.js} +7 -7
  180. package/{chunk-X7HHHIOZ.js → chunk-Y6ROFCZO.js} +0 -0
  181. 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-XRWZB6CF.js";
18
+ } from "./chunk-BVWTQJAA.js";
20
19
  import "./chunk-JEXVIMYZ.js";
21
20
  import {
22
21
  prepareTools
23
- } from "./chunk-XOVEWFLK.js";
22
+ } from "./chunk-6RDFAKG7.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-BZWBEHGD.js";
44
+ } from "./chunk-4MPGAOXS.js";
42
45
  import "./chunk-EOARMOVD.js";
43
46
  import "./chunk-HS7MLR74.js";
44
47
  import {
@@ -46,50 +49,41 @@ import {
46
49
  getAllToolRuns,
47
50
  resolveAgentRecommendedSkillNames,
48
51
  resolveAgentRequiredPackIds
49
- } from "./chunk-MMPXJXHT.js";
50
- import "./chunk-5UTFL4QJ.js";
52
+ } from "./chunk-HZH7RULB.js";
51
53
  import "./chunk-NF64D32W.js";
54
+ import "./chunk-5B7XS6UO.js";
55
+ import "./chunk-5UTFL4QJ.js";
52
56
  import "./chunk-3L2WKC3W.js";
53
- import "./chunk-NTW5GWDM.js";
54
- import "./chunk-IAO6JBYW.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-K5UOP7AI.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-BGSLKVCP.js";
84
- import "./chunk-AFDS2CVM.js";
69
+ } from "./chunk-WIU4KIBL.js";
70
+ import "./chunk-DSSTTEKI.js";
71
+ import {
72
+ resolveToolBaseUrl
73
+ } from "./chunk-DCLMZ5TX.js";
74
+ import "./chunk-UQNS32WZ.js";
75
+ import {
76
+ extractCategorizedMentions
77
+ } from "./chunk-MEYIRKDN.js";
85
78
  import {
86
79
  getTableState
87
- } from "./chunk-ZXKVPF4K.js";
80
+ } from "./chunk-RQNHAVSR.js";
88
81
  import {
89
82
  getCurrentSpaceId,
90
83
  getCurrentSpaceIdRaw,
91
84
  getViewMode
92
85
  } from "./chunk-ZJ7UHBJS.js";
86
+ import "./chunk-ZRAU6T47.js";
93
87
  import {
94
88
  PERSONALIZATION_DIALOG_CATEGORY,
95
89
  addToolMessage,
@@ -106,34 +100,48 @@ import {
106
100
  selectAllMsgs,
107
101
  selectCurrentDialogConfig,
108
102
  selectDialogConfigByKey,
109
- shouldBlockForGptPro,
110
103
  updateTokens,
111
104
  updateToolMessage
112
- } from "./chunk-FOWEGIMF.js";
113
- import "./chunk-MC4XLIJ7.js";
114
- import "./chunk-3BMYXEUW.js";
105
+ } from "./chunk-2QZTQEW4.js";
106
+ import "./chunk-523DITKR.js";
115
107
  import "./chunk-YYLHWIW6.js";
116
- import "./chunk-AGGIDPCZ.js";
117
- import "./chunk-ZLR5JN3E.js";
108
+ import "./chunk-6O4IK4V2.js";
109
+ import "./chunk-4B4DAAFV.js";
118
110
  import {
119
111
  createCliChatTurnStream,
120
112
  getCliChatSession,
121
113
  startCliChatSession
122
- } from "./chunk-TOP2VXOR.js";
114
+ } from "./chunk-Z4CSIXYP.js";
123
115
  import "./chunk-5RGU3J7P.js";
116
+ import "./chunk-4LCOCOR5.js";
124
117
  import {
125
118
  addActiveController,
119
+ claimDialogTurnPhase,
120
+ clearDialogTurnPhase,
126
121
  clearPendingUserInputQueue,
127
122
  dequeueUserInput,
128
123
  removeActiveController,
129
124
  selectActiveControllers,
130
125
  selectPendingFiles,
131
126
  selectPendingUserInputQueue,
127
+ setDialogTurnPhase,
132
128
  tokenUsageLiveUpdate
133
- } from "./chunk-6YTOJY35.js";
134
- import "./chunk-M76ECQRD.js";
129
+ } from "./chunk-6D2JFXLY.js";
135
130
  import "./chunk-YDH3FDFQ.js";
136
- import "./chunk-JRQFUXY7.js";
131
+ import "./chunk-MX574M24.js";
132
+ import {
133
+ getFinalPrice,
134
+ getModelPricing,
135
+ getPrices,
136
+ hasExplicitAgentPricing
137
+ } from "./chunk-4DPP773Q.js";
138
+ import {
139
+ getPublicImageAgentDefaultProfile,
140
+ getPublicImageAgentMode
141
+ } from "./chunk-VIDPVFP3.js";
142
+ import "./chunk-AGGIDPCZ.js";
143
+ import "./chunk-CU3QB4HW.js";
144
+ import "./chunk-B2XUQXQX.js";
137
145
  import {
138
146
  TOOL_PACKS,
139
147
  addDefaultSystemCapabilityTools,
@@ -143,8 +151,8 @@ import {
143
151
  expandEnabledPackPromptPatches,
144
152
  expandEnabledPacks,
145
153
  resolveEffectiveEnabledPacks
146
- } from "./chunk-DHDMC6FO.js";
147
- import "./chunk-Q554LLSI.js";
154
+ } from "./chunk-6TPOEJMQ.js";
155
+ import "./chunk-AUDNYVRC.js";
148
156
  import "./chunk-KHCLMKZZ.js";
149
157
  import {
150
158
  assertDesktopAgentRuntimeTurnBodyHasNoRawSecrets,
@@ -153,11 +161,11 @@ import {
153
161
  projectToolMessageContent,
154
162
  resolveAgentContextWindow,
155
163
  stripImagePartsForTextOnlyAgent
156
- } from "./chunk-3IIEFNGY.js";
157
- import "./chunk-CQ3WA2NE.js";
164
+ } from "./chunk-C53ZG23R.js";
158
165
  import "./chunk-5ZUL4CUO.js";
166
+ import "./chunk-CQ3WA2NE.js";
159
167
  import "./chunk-N7J63Q6C.js";
160
- import "./chunk-OA6Q2A4I.js";
168
+ import "./chunk-A7RSPKU6.js";
161
169
  import {
162
170
  extractImagePartsFromResponseOutput,
163
171
  extractTextFromResponseOutput,
@@ -165,49 +173,51 @@ import {
165
173
  } from "./chunk-PUOC4YRO.js";
166
174
  import {
167
175
  resolveRuntimeToolSurfaceForAgent
168
- } from "./chunk-IIVGDG4I.js";
169
- import "./chunk-FDTR4QJ6.js";
170
- import "./chunk-UZGQNTVW.js";
171
- import "./chunk-6OZ36FXI.js";
176
+ } from "./chunk-LNPYTNMG.js";
177
+ import "./chunk-H6A6X4EK.js";
178
+ import "./chunk-S5XGT6GB.js";
179
+ import "./chunk-27ONFIEY.js";
172
180
  import {
173
181
  getModelContextWindow,
174
182
  getModelInfo
175
- } from "./chunk-JAXOVNM4.js";
183
+ } from "./chunk-WILHZY7K.js";
176
184
  import {
177
185
  planContextUsage
178
- } from "./chunk-WADCY6G6.js";
186
+ } from "./chunk-6ZWMH6TJ.js";
187
+ import "./chunk-5MMAK75Q.js";
179
188
  import {
180
189
  estimateTokenCount
181
190
  } from "./chunk-PSCNXBYA.js";
191
+ import "./chunk-ESRMFY7G.js";
192
+ import "./chunk-BYXBJQAS.js";
193
+ import "./chunk-DWLEOOGR.js";
182
194
  import {
183
195
  isOpenAiResponsesModel
184
- } from "./chunk-GQBOR3G6.js";
185
- import "./chunk-BYXBJQAS.js";
196
+ } from "./chunk-7KVZ5LDQ.js";
197
+ import {
198
+ toErrorMessage
199
+ } from "./chunk-HNMXYYJR.js";
186
200
  import {
187
201
  getApiEndpoint,
188
202
  getModelConfig,
189
203
  getProviderByModelName
190
- } from "./chunk-OIVSQH2O.js";
191
- import "./chunk-DWLEOOGR.js";
192
- import "./chunk-HVURBGF3.js";
193
- import "./chunk-ONXOABJR.js";
204
+ } from "./chunk-3BXNTXYI.js";
194
205
  import "./chunk-W7XHHYWM.js";
195
- import {
196
- toErrorMessage
197
- } from "./chunk-HNMXYYJR.js";
206
+ import "./chunk-RSEEDUMS.js";
207
+ import "./chunk-UAD2WT54.js";
208
+ import "./chunk-HNGRBWYF.js";
198
209
  import {
199
210
  buildLinkedSpacesSection,
200
211
  buildSpaceContextLayer
201
- } from "./chunk-DVINR3PL.js";
202
- import "./chunk-2GRGFCF6.js";
212
+ } from "./chunk-HDLLCBRF.js";
213
+ import "./chunk-4VJAC32I.js";
203
214
  import {
204
215
  canonicalizeToolNames,
205
216
  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";
217
+ } from "./chunk-XUWRURDF.js";
218
+ import "./chunk-5J3PYNUP.js";
219
+ import "./chunk-CYSYR67N.js";
220
+ import "./chunk-Y3PMXGLH.js";
211
221
  import {
212
222
  selectAiRecentContentLimit,
213
223
  selectCurrentServer,
@@ -216,46 +226,39 @@ import {
216
226
  selectMaxExecutionTime,
217
227
  selectSpaceContextLevel,
218
228
  selectUserTonePreset
219
- } from "./chunk-AFUORTY4.js";
229
+ } from "./chunk-SONWNI3L.js";
220
230
  import "./chunk-Y5GCAMGP.js";
221
231
  import "./chunk-QDSINZM3.js";
222
232
  import {
223
233
  asRecordOrEmpty
224
234
  } from "./chunk-KX6YBIHG.js";
225
- import "./chunk-V4MJDUSR.js";
226
- import "./chunk-UAD2WT54.js";
227
235
  import {
228
236
  patch,
229
237
  read,
230
238
  selectById,
231
239
  write
232
- } from "./chunk-H62HCIUP.js";
240
+ } from "./chunk-HYZIYH2H.js";
241
+ import "./chunk-7CHC4W22.js";
233
242
  import {
234
243
  asNonEmptyStringArray,
235
244
  createDialogMessageKeyAndId,
236
245
  dialogMessageKey,
237
246
  metaKey
238
- } from "./chunk-VMFTFOWF.js";
247
+ } from "./chunk-3AH7LNUB.js";
239
248
  import {
240
249
  asOptionalFiniteNumber
241
250
  } from "./chunk-WWC7I6TA.js";
242
- import "./chunk-ABQYVJBJ.js";
243
- import "./chunk-QSJ3HFEF.js";
244
- import "./chunk-WV42OMV7.js";
245
251
  import {
246
- isSystemBuiltinTrustedAgentKey
247
- } from "./chunk-BNGW5ASC.js";
248
- import {
249
- extractCustomId
250
- } from "./chunk-M2EJHDJP.js";
252
+ asTrimmedLowercaseString
253
+ } from "./chunk-QSJ3HFEF.js";
254
+ import "./chunk-IAESIMK7.js";
251
255
  import {
252
256
  selectRuntimeCurrentServer
253
- } from "./chunk-UKWGR5SS.js";
257
+ } from "./chunk-WIWM4FE3.js";
254
258
  import {
255
259
  getIsDesktopApp,
256
260
  isAbortError
257
261
  } from "./chunk-QOKAKDPE.js";
258
- import "./chunk-OW765XBU.js";
259
262
  import {
260
263
  getSessionSnapshotForState,
261
264
  selectIdentityToken,
@@ -263,10 +266,17 @@ import {
263
266
  selectIdentityUserBalance,
264
267
  selectIdentityUserId
265
268
  } from "./chunk-SEJ5OS6F.js";
269
+ import "./chunk-OW765XBU.js";
266
270
  import "./chunk-GBRG75BQ.js";
267
271
  import {
268
272
  isRecord
269
273
  } from "./chunk-KUG52IAP.js";
274
+ import {
275
+ isSystemBuiltinTrustedAgentKey
276
+ } from "./chunk-BNGW5ASC.js";
277
+ import {
278
+ extractCustomId
279
+ } from "./chunk-M2EJHDJP.js";
270
280
  import {
271
281
  asTrimmedString
272
282
  } from "./chunk-3EUW3WEO.js";
@@ -1788,6 +1798,8 @@ var buildRecentAppToolMemory = (messages, toolRuns) => {
1788
1798
  // packages/ai/agent/streamAgentChatTurnUtils.ts
1789
1799
  var BROWSER_UNAVAILABLE_CORE_TOOLS = {
1790
1800
  createAgentAutomation: true,
1801
+ updateAgentAutomation: true,
1802
+ deleteAgentAutomation: true,
1791
1803
  notifyUser: true
1792
1804
  };
1793
1805
  var getRuntimeCoreTools = () => {
@@ -2336,6 +2348,31 @@ var resolveImageGenerationStreamingState = (agentConfig, args) => {
2336
2348
  };
2337
2349
  };
2338
2350
 
2351
+ // packages/core/gptProTier.ts
2352
+ var GPT_PRO_REQUIRED_RECHARGE_AMOUNT = 199;
2353
+ function isGptProModel(provider, model) {
2354
+ const normalizedProvider = asTrimmedLowercaseString(provider);
2355
+ const normalizedModel = asTrimmedLowercaseString(model);
2356
+ if (normalizedProvider === "openai") {
2357
+ return /^gpt-[a-z0-9.-]+-pro(?:-|$)/.test(normalizedModel);
2358
+ }
2359
+ if (normalizedProvider === "deepinfra") {
2360
+ return normalizedModel.includes("claude") && (normalizedModel.includes("opus") || normalizedModel.includes("fable"));
2361
+ }
2362
+ if (normalizedProvider === "nolo") {
2363
+ return normalizedModel === "kimi-k3";
2364
+ }
2365
+ return false;
2366
+ }
2367
+ 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`;
2368
+ function shouldBlockForGptPro(agent, gptProStatus) {
2369
+ if (!agent) return { blocked: false };
2370
+ if (agent.apiSource === "cli") return { blocked: false };
2371
+ if (!isGptProModel(agent.provider, agent.model)) return { blocked: false };
2372
+ if (gptProStatus === "active") return { blocked: false };
2373
+ return { blocked: true, message: GPT_PRO_BLOCKED_MESSAGE };
2374
+ }
2375
+
2339
2376
  // packages/ai/agent/persistMessageWithFixedId.ts
2340
2377
  async function persistMessageWithFixedId(dispatch, message) {
2341
2378
  dispatch(addUserMessage(message));
@@ -2418,6 +2455,7 @@ function normalizeDesktopAgentRuntimeTurnError(data) {
2418
2455
  async function* runDesktopAgentRuntimeTurnStream({
2419
2456
  fetchImpl = fetch,
2420
2457
  signal,
2458
+ noEventWatchdogMs,
2421
2459
  ...args
2422
2460
  }) {
2423
2461
  try {
@@ -2474,7 +2512,13 @@ async function* runDesktopAgentRuntimeTurnStream({
2474
2512
  yield { type: "error", error: "The operation was aborted." };
2475
2513
  return;
2476
2514
  }
2477
- const { done, value } = await readStreamChunk(reader, { signal });
2515
+ const { done, value } = await readStreamChunk(reader, {
2516
+ signal,
2517
+ ...noEventWatchdogMs && noEventWatchdogMs > 0 ? {
2518
+ timeoutMs: noEventWatchdogMs,
2519
+ timeoutErrorMessage: `Desktop turn stream stalled: no event within ${noEventWatchdogMs}ms`
2520
+ } : {}
2521
+ });
2478
2522
  if (done) break;
2479
2523
  buffer += decoder.decode(value, { stream: true });
2480
2524
  const lines = buffer.split("\n");
@@ -3048,6 +3092,28 @@ function hasInlineExecutedToolCalls(result) {
3048
3092
  const output = result?.output;
3049
3093
  return Array.isArray(output) && output.some((b) => b?.type === "toolCall" && b?.result != null);
3050
3094
  }
3095
+ 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;
3096
+ var DESKTOP_SSE_NO_EVENT_WATCHDOG_MS = 20 * 60 * 1e3;
3097
+ function classifyLocalTurnStreamError(errorText) {
3098
+ const text = typeof errorText === "string" ? errorText : "";
3099
+ if (COMPACTION_TIMEOUT_PATTERN.test(text)) {
3100
+ return {
3101
+ kind: "compaction_timeout",
3102
+ retryable: true,
3103
+ summary: "\u5386\u53F2\u538B\u7F29\u8D85\u65F6",
3104
+ 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"
3105
+ };
3106
+ }
3107
+ if (isContextOverflowText(text)) {
3108
+ return {
3109
+ kind: "context_overflow",
3110
+ retryable: true,
3111
+ summary: "\u4E0A\u4E0B\u6587\u8FC7\u957F",
3112
+ 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"
3113
+ };
3114
+ }
3115
+ return { kind: "generic", retryable: true, summary: "", actionHint: "" };
3116
+ }
3051
3117
  function createRemoteToolEventHandlers(opts) {
3052
3118
  const { dialogId, dispatch, messageMetadata } = opts;
3053
3119
  const activeToolMessages = /* @__PURE__ */ new Map();
@@ -3182,6 +3248,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
3182
3248
  thunkApi.signal.addEventListener("abort", onAbort);
3183
3249
  let loopKey = null;
3184
3250
  let runtimeDialogKey = explicitDialogKey ?? null;
3251
+ let turnPhaseTurnId = null;
3185
3252
  let remoteTransientMessageId = null;
3186
3253
  let remoteTransientMessageFinalized = false;
3187
3254
  let modelRequestStarted = false;
@@ -3290,8 +3357,10 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
3290
3357
  const configuredBoundMachineId = asTrimmedString(
3291
3358
  agentConfig.runtimeBinding?.machineId
3292
3359
  );
3293
- const boundMachineId = resolveRemoteBoundMachineId(configuredBoundMachineId);
3294
- if (agentConfig.apiSource === "cli" || boundMachineId && !getIsDesktopApp()) {
3360
+ const currentDialog = selectDialogConfigByKey(state, explicitDialogKey) ?? selectCurrentDialogConfig(state);
3361
+ const explicitTarget = runtimeOptions?.runtimeTarget ?? (currentDialog?.runtimeBinding?.target?.kind === "server" || currentDialog?.runtimeBinding?.target?.kind === "machine" ? currentDialog.runtimeBinding.target : void 0);
3362
+ const boundMachineId = explicitTarget ? explicitTarget.kind === "machine" ? asTrimmedString(explicitTarget.machineId) : null : resolveRemoteBoundMachineId(configuredBoundMachineId);
3363
+ if (agentConfig.apiSource === "cli" && !explicitTarget || boundMachineId && !getIsDesktopApp()) {
3295
3364
  console.info("[streamAgentChatTurn] Triggered CLI/machine route. apiSource:", agentConfig.apiSource, "boundMachineId:", boundMachineId, "agentKey:", agentKey);
3296
3365
  const currentState = getState();
3297
3366
  const w2 = typeof globalThis !== "undefined" && globalThis.window ? globalThis.window : null;
@@ -3375,6 +3444,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
3375
3444
  stream: true,
3376
3445
  persistDialog: false,
3377
3446
  clientDialogId: dialogId2,
3447
+ ...explicitTarget ? { runtimeTarget: explicitTarget } : {},
3378
3448
  runtimeContext: {
3379
3449
  surface: "web",
3380
3450
  host: "browser",
@@ -3722,7 +3792,6 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
3722
3792
  }
3723
3793
  return;
3724
3794
  }
3725
- const currentDialog = selectDialogConfigByKey(state, explicitDialogKey) ?? selectCurrentDialogConfig(state);
3726
3795
  const activeDialogKey = currentDialog?.dbKey;
3727
3796
  const dialogKey = explicitDialogKey || activeDialogKey;
3728
3797
  if (!dialogKey) {
@@ -3739,6 +3808,8 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
3739
3808
  const w2 = typeof globalThis !== "undefined" && globalThis.window ? globalThis.window : null;
3740
3809
  loopKey = `loop:${dialogId}`;
3741
3810
  dispatch(addActiveController({ messageId: loopKey, controller: loopController, dialogKey }));
3811
+ turnPhaseTurnId = `turn-phase:${dialogId}:${Date.now().toString(36)}:${Math.random().toString(36).slice(2, 8)}`;
3812
+ claimDialogTurnPhase({ dialogKey, turnId: turnPhaseTurnId });
3742
3813
  let currentContent = "";
3743
3814
  const assistantSegments = [];
3744
3815
  let assistantMessageKeys = null;
@@ -3811,7 +3882,18 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
3811
3882
  workspaceToolsHint: runtimeOptions?.workspaceToolsHint === true,
3812
3883
  agentConfigSnapshot: agentConfig,
3813
3884
  dialogMessages: selectAllMsgs(getState(), dialogId),
3814
- signal: loopController.signal
3885
+ signal: loopController.signal,
3886
+ // SSE 传输层兜底(review 修复 4):此前本调用方从不传
3887
+ // noEventWatchdogMs,watchdog 永远关闭——「已有安全网」只是
3888
+ // 错觉,挂起点若在 provider.complete 之外(resolveProvider /
3889
+ // adapter 内部,runtime 没有任何 deadline)就会无限静默。
3890
+ // 量级必须大于 runtime 自己的 idle 窗(默认 10 分钟无新输出
3891
+ // 才放弃,见 localLoop.DEFAULT_LLM_REQUEST_TIMEOUT_MS),
3892
+ // 否则一个健康的慢思考轮次会被客户端提前判死,用户拿到的是
3893
+ // 未分类的 "stream stalled" 而不是 runtime 的
3894
+ // LLM_REQUEST_TIMEOUT 可操作文案。取 2× = 20 分钟:
3895
+ // 只兜「runtime 完全没 deadline」的真悬挂。
3896
+ noEventWatchdogMs: DESKTOP_SSE_NO_EVENT_WATCHDOG_MS
3815
3897
  });
3816
3898
  for await (const event of eventStream) {
3817
3899
  if (loopController.signal.aborted || thunkApi.signal.aborted) {
@@ -3884,6 +3966,9 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
3884
3966
  dispatch(messageStreaming(toolResultMsg));
3885
3967
  }
3886
3968
  }
3969
+ } else if (event.type === "status") {
3970
+ const phase = event.phase === "validating-context" ? "validating" : event.phase;
3971
+ setDialogTurnPhase({ phase, dialogKey, turnId: turnPhaseTurnId ?? void 0 });
3887
3972
  } else if (event.type === "done") {
3888
3973
  streamResult = event.result;
3889
3974
  } else if (event.type === "error") {
@@ -4015,8 +4100,12 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
4015
4100
  setLoopStopReason("error");
4016
4101
  };
4017
4102
  if (streamError) {
4018
- await finalizeDesktopTurnOnError(streamError);
4019
- return rejectWithValue(streamError);
4103
+ const info = classifyLocalTurnStreamError(streamError);
4104
+ const finalError = info.actionHint ? `${streamError}
4105
+
4106
+ ${info.actionHint}` : streamError;
4107
+ await finalizeDesktopTurnOnError(finalError);
4108
+ return rejectWithValue(finalError);
4020
4109
  }
4021
4110
  if (!streamResult) {
4022
4111
  const message = "Local turn stream closed unexpectedly without result";
@@ -4190,6 +4279,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
4190
4279
  stream: true,
4191
4280
  persistDialog: false,
4192
4281
  clientDialogId: dialogId,
4282
+ ...explicitTarget ? { runtimeTarget: explicitTarget } : {},
4193
4283
  runtimeContext: {
4194
4284
  surface: "web",
4195
4285
  host: "browser",
@@ -4982,6 +5072,7 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
4982
5072
  error?.message || "An unexpected error occurred in streamAgentChatTurn."
4983
5073
  );
4984
5074
  } finally {
5075
+ clearDialogTurnPhase({ dialogKey: runtimeDialogKey ?? void 0, turnId: turnPhaseTurnId ?? void 0 });
4985
5076
  if (loopKey && runtimeDialogKey) {
4986
5077
  dispatch(removeActiveController({ messageId: loopKey, dialogKey: runtimeDialogKey }));
4987
5078
  } else if (loopKey) {
@@ -5001,5 +5092,6 @@ var streamAgentChatTurnHandler = async (args, thunkApi) => {
5001
5092
  }
5002
5093
  };
5003
5094
  export {
5095
+ classifyLocalTurnStreamError,
5004
5096
  streamAgentChatTurnHandler
5005
5097
  };
@@ -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,