nolo-cli 0.219.0 → 0.220.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 (201) hide show
  1. package/{_executeModel-WW57SJN4.js → _executeModel-BNEMFCAO.js} +74 -74
  2. package/{action-CK64LS6S.js → action-GDZDXPMB.js} +7 -7
  3. package/{addContentAction-EQXMFNPR.js → addContentAction-7RO4AMRI.js} +12 -12
  4. package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-EVYBGTXB.js} +14 -14
  5. package/{agentDeleteCommand-X2VWEKUA.js → agentDeleteCommand-7QTQNFCO.js} +114 -115
  6. package/{agentEmailCommands-6IE773VW.js → agentEmailCommands-I7SHOSD6.js} +115 -116
  7. package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
  8. package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
  9. package/{agentListCommands-5UNM7CGG.js → agentListCommands-GUGMORTK.js} +84 -70
  10. package/{agentMachineCommands-EVWFKK6Q.js → agentMachineCommands-UMDKILU3.js} +56 -55
  11. package/{agentProviderCommands-ZCH37KAL.js → agentProviderCommands-STI3DQ6A.js} +6 -6
  12. package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-KHV4EELF.js} +5 -5
  13. package/{agentRecordCommands-DX2WE6BH.js → agentRecordCommands-YTAMTHOY.js} +102 -103
  14. package/{agentRunCommand-KGOT2AFB.js → agentRunCommand-DBM6YNO6.js} +113 -112
  15. package/{agentRunControl-QDFW5P2T.js → agentRunControl-MBG4U6SL.js} +20 -14
  16. package/{agentRuntimeLocal-SD7U2EGY.js → agentRuntimeLocal-TU4LA353.js} +39 -39
  17. package/{agentSlice-ACZGTZVW.js → agentSlice-DPG7Q7IA.js} +16 -16
  18. package/{appDeleteCommands-NE3NQQJL.js → appDeleteCommands-JWP3XPUA.js} +50 -49
  19. package/{appDeployCommands-2BAHY522.js → appDeployCommands-6E4TQCWI.js} +50 -49
  20. package/{appDeployStatusCommands-JTW6LZNC.js → appDeployStatusCommands-ALU4SADG.js} +50 -49
  21. package/{appGetCommands-WKFEJO6A.js → appGetCommands-JEY4L6L4.js} +50 -49
  22. package/{appListCommands-HNAZZLFX.js → appListCommands-PCAVHU7M.js} +50 -49
  23. package/{authCommand-4FDPL7WG.js → authCommand-CGRIIOOV.js} +26 -23
  24. package/{authCommands-GAJ3NIXO.js → authCommands-55OGQGCR.js} +9 -6
  25. package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-BAE2LDXF.js} +4 -4
  26. package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-WAA45NCS.js} +6 -6
  27. package/{chunk-OB6DVWPF.js → chunk-262R3XNN.js} +16 -2
  28. package/{chunk-5OZC7R7Y.js → chunk-2MCB7CD7.js} +13 -12
  29. package/{chunk-IWH5SOU4.js → chunk-2NPD3FTX.js} +3 -3
  30. package/{chunk-OGHP3CTL.js → chunk-2X7WFDT6.js} +1 -1
  31. package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
  32. package/{chunk-QWYFFHCJ.js → chunk-3NNXR7EH.js} +10 -10
  33. package/{chunk-JWXITTQB.js → chunk-3P54D2E4.js} +1 -1
  34. package/{chunk-EGXPAWLG.js → chunk-3U44JB3O.js} +1 -1
  35. package/{chunk-KAVGK4ES.js → chunk-44J7Z5AQ.js} +18 -18
  36. package/{chunk-YL3EFYL3.js → chunk-4D4QD7FT.js} +3 -1
  37. package/{chunk-EUCFKKDM.js → chunk-4I2MXV5Q.js} +38 -10
  38. package/{chunk-C4WTX5TU.js → chunk-4ZGPHFLE.js} +2 -2
  39. package/{chunk-FVZW66K4.js → chunk-53MFERZ3.js} +177 -94
  40. package/{chunk-MOMR7NMG.js → chunk-547ENH5T.js} +1 -1
  41. package/{chunk-N7HVLYOY.js → chunk-5WKDR7HS.js} +3 -3
  42. package/chunk-5ZUOVCKT.js +32 -0
  43. package/{chunk-TRWT3EE3.js → chunk-62HXNQVV.js} +1 -1
  44. package/{chunk-KOXKKHFE.js → chunk-6QHKRARD.js} +2 -2
  45. package/{chunk-N3J4VDGV.js → chunk-6RDBLXVQ.js} +15 -15
  46. package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
  47. package/{chunk-JC5XLWZK.js → chunk-7JGMNKKG.js} +19 -15
  48. package/{chunk-FRSBYNWI.js → chunk-AGYPUBFW.js} +31 -205
  49. package/{chunk-UYOICCYG.js → chunk-ALAES342.js} +59 -88
  50. package/{chunk-VREDDN25.js → chunk-ATEKLSLR.js} +1 -1
  51. package/{chunk-6NKA6RKF.js → chunk-AUAJTAFM.js} +8 -8
  52. package/{chunk-7UH3DGV6.js → chunk-AWIL6EHN.js} +7 -7
  53. package/chunk-BIDSIRTS.js +307 -0
  54. package/chunk-BIWI5M4E.js +62 -0
  55. package/{chunk-L5I543VB.js → chunk-BNMPUQW6.js} +1 -1
  56. package/{chunk-BGGHA5DV.js → chunk-BP5ZJ6B4.js} +1 -1
  57. package/{chunk-Q6HOUF4O.js → chunk-CBUZ6DKA.js} +3 -3
  58. package/{chunk-LE6LGAJE.js → chunk-CD3RU7XL.js} +17 -2
  59. package/{chunk-AVHRSJUH.js → chunk-CMMI3DAT.js} +13 -13
  60. package/{chunk-H7R3365N.js → chunk-CYWNWA77.js} +5 -5
  61. package/{chunk-6D7NVU66.js → chunk-D6YNCNM6.js} +17 -14
  62. package/{chunk-6RQFZCKH.js → chunk-DBUR22G5.js} +6 -6
  63. package/{chunk-PVZY6P3S.js → chunk-DEA37IUY.js} +2 -2
  64. package/{chunk-QLFCTYRH.js → chunk-DGYCDA6W.js} +3 -3
  65. package/{chunk-SRL56PI2.js → chunk-DUUDXSLX.js} +21 -7
  66. package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
  67. package/{chunk-PFJNLBRU.js → chunk-EEOOBRA7.js} +6 -6
  68. package/{chunk-KN3HEZIQ.js → chunk-EVGU5P4U.js} +1 -1
  69. package/{chunk-CXDPIPZ4.js → chunk-F6Z6ZCUV.js} +2 -2
  70. package/{chunk-EOWLBDY6.js → chunk-FJSNBZXR.js} +1 -1
  71. package/{chunk-GNHMRBYZ.js → chunk-G7IUT2V3.js} +4 -3
  72. package/{chunk-4NMHE7CX.js → chunk-GPOV42YM.js} +14 -14
  73. package/{chunk-SASHAZ67.js → chunk-GUXZK7SE.js} +2 -2
  74. package/{chunk-65XXHYZ5.js → chunk-GV6PRJBU.js} +3 -3
  75. package/{chunk-G2EJ7NL4.js → chunk-HBRDSQ3M.js} +2 -2
  76. package/{chunk-OOF7XDZF.js → chunk-HHFGE2WF.js} +6 -6
  77. package/{chunk-DJSTBAOU.js → chunk-HSSBDZLD.js} +4 -4
  78. package/{chunk-GIABSSWQ.js → chunk-HYLRQDEE.js} +4 -4
  79. package/{chunk-UJKTI5PG.js → chunk-ILHQ2AXT.js} +0 -1
  80. package/{chunk-S7SB7L2I.js → chunk-JJMR2EA3.js} +19 -19
  81. package/{chunk-3ESU44FG.js → chunk-JLAMNSBC.js} +3 -3
  82. package/{chunk-TVFRV3UQ.js → chunk-JUSHVFNF.js} +238 -185
  83. package/{chunk-MKQ2UTTX.js → chunk-KHVFJSVE.js} +22 -19
  84. package/{chunk-7WPAI5JJ.js → chunk-KRI6N5QZ.js} +14 -14
  85. package/{chunk-HCJFGH6Y.js → chunk-L32W3PRP.js} +46 -16
  86. package/{chunk-3N4ASIP6.js → chunk-LMRRCEDE.js} +11 -11
  87. package/{chunk-2KTUDBG7.js → chunk-M4SFKP5L.js} +1 -1
  88. package/{chunk-VHPAA6MT.js → chunk-MSMHU36U.js} +6 -6
  89. package/{chunk-F3TQURKK.js → chunk-MXKWTPUM.js} +19 -19
  90. package/{chunk-XFJ4ZPFC.js → chunk-MXRUXMZ3.js} +25 -25
  91. package/{chunk-OXKUPBAQ.js → chunk-NHY322ZU.js} +151 -10
  92. package/{chunk-UMRI2IRY.js → chunk-OBIC6EG7.js} +6 -6
  93. package/{chunk-VALBGPM6.js → chunk-OBSEKCVK.js} +17 -20
  94. package/{chunk-SYQR7FQS.js → chunk-OG6MQOQG.js} +96 -28
  95. package/{chunk-AMEOV5VZ.js → chunk-OOJNQK6V.js} +33 -33
  96. package/{chunk-K5FNYHZC.js → chunk-OWKNSIXL.js} +149 -54
  97. package/{chunk-CKT6QUE2.js → chunk-Q3IVPFVO.js} +1 -1
  98. package/{chunk-AFHOCBSP.js → chunk-QBZCGP34.js} +1 -1
  99. package/{chunk-2ZKFCIJJ.js → chunk-QCB42576.js} +1 -1
  100. package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
  101. package/{chunk-XWGDCWXY.js → chunk-QRGDJA4B.js} +9 -9
  102. package/{chunk-4A2JIXR2.js → chunk-QYB23WUH.js} +1 -1
  103. package/{chunk-652XYZGP.js → chunk-R44TU3MZ.js} +8 -3
  104. package/{chunk-2VUZSVAS.js → chunk-R6Z5S5GA.js} +7 -7
  105. package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
  106. package/{chunk-GGKNJ42M.js → chunk-RBPUNSG5.js} +2 -2
  107. package/{chunk-GVGOEMNV.js → chunk-RG2DGNL6.js} +3 -3
  108. package/{chunk-2OLYKYNY.js → chunk-RTHFJZ6M.js} +8 -8
  109. package/{chunk-C4VAR65S.js → chunk-RYOLWYBK.js} +120 -116
  110. package/{chunk-T3O6BLYU.js → chunk-S5NA3C52.js} +147 -115
  111. package/{chunk-D726I5AZ.js → chunk-S6FDXXZV.js} +2 -2
  112. package/{chunk-JVRQ6YVK.js → chunk-S6K5F3KP.js} +1 -1
  113. package/{chunk-IWQAOW2X.js → chunk-SRCCSTIM.js} +8 -8
  114. package/{chunk-KO63FPG3.js → chunk-SZVMASJ2.js} +750 -2523
  115. package/{chunk-Q7WP5RPC.js → chunk-TGNIKIHR.js} +5 -5
  116. package/{chunk-AK5O76CC.js → chunk-TI2EPRHE.js} +2 -2
  117. package/{chunk-5R63B62U.js → chunk-TSPMLCWI.js} +7 -7
  118. package/{chunk-QVBXJNZ2.js → chunk-TUSTONB3.js} +1 -1
  119. package/{chunk-KEN3N2TN.js → chunk-VMJVAJ6W.js} +13 -10
  120. package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
  121. package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
  122. package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
  123. package/{chunk-J6T25AJ6.js → chunk-XSW4EXQV.js} +82 -18
  124. package/{chunk-O2CYENYJ.js → chunk-XTETTSKN.js} +2107 -1092
  125. package/{chunk-DVQH4BTR.js → chunk-YKY4OVOX.js} +14 -10
  126. package/{chunk-5RKUPJYL.js → chunk-ZH3KXFHS.js} +11 -3
  127. package/chunk-ZOHO6MOF.js +376 -0
  128. package/{cliAgentConfigHelpers-PO3MVDME.js → cliAgentConfigHelpers-BTRHMPW2.js} +12 -12
  129. package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
  130. package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
  131. package/{cliLocalAgentRecordReader-Z7CH4K4R.js → cliLocalAgentRecordReader-M3F76NIP.js} +45 -45
  132. package/{commandRegistry-SDSYBKMC.js → commandRegistry-T3UBK6OA.js} +93 -93
  133. package/{contentThunks-G3TRPEAU.js → contentThunks-YEPZAHXU.js} +36 -35
  134. package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-YB5H5BBK.js} +4 -4
  135. package/{createAgentAutomationAction-KHA4MXUJ.js → createAgentAutomationAction-TBIIO5WT.js} +36 -35
  136. package/{createDialogAction-KWSBNAPJ.js → createDialogAction-KBKMYFTQ.js} +37 -36
  137. package/{createPageAction-HXKJ7OFG.js → createPageAction-3FGAPLJO.js} +37 -36
  138. package/{db-CS4ZJQKV.js → db-M7FU2GNK.js} +9 -6
  139. package/{dbSlice-ZJPDIFER.js → dbSlice-XRUZOGSU.js} +11 -11
  140. package/{deleteFile-Q3YDB4ML.js → deleteFile-6URDHYRB.js} +7 -7
  141. package/{dialogCommands-6KQEBHSG.js → dialogCommands-NRLCOPJR.js} +52 -52
  142. package/{dialogNotifyCommand-WIZFFEY3.js → dialogNotifyCommand-SHGPCU22.js} +13 -13
  143. package/{dialogSlice-HXPKFGRL.js → dialogSlice-DP2WTMNO.js} +34 -33
  144. package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-W2WCSGKF.js} +1 -1
  145. package/{docCreateCommands-XZOLWBRC.js → docCreateCommands-YJRDA3RX.js} +48 -47
  146. package/{docDeleteCommands-ZSO4LGWE.js → docDeleteCommands-A5QIHZNF.js} +50 -49
  147. package/{docReadCommands-TTMXCDER.js → docReadCommands-CF2LTMYH.js} +48 -47
  148. package/{docStore-A2B3GH33.js → docStore-NDY3K3PK.js} +12 -12
  149. package/{docUpdateCommands-PRG6WOXL.js → docUpdateCommands-QRKV4ZXE.js} +48 -47
  150. package/fetchMessages-TQEUZD7H.js +1 -1
  151. package/{getPricing-YH3VMSVU.js → getPricing-LF5C4XSI.js} +5 -5
  152. package/{handleSendMessageAction-NWYG3Q72.js → handleSendMessageAction-IUGVVJ43.js} +65 -65
  153. package/{hostCredentialCreate-WS6D3EHT.js → hostCredentialCreate-X2ZFRXDR.js} +102 -103
  154. package/index.js +56 -18
  155. package/keys-RWF7UCB4.js +1 -1
  156. package/{localDialogRead-SVTPA5GY.js → localDialogRead-CCOCVGAP.js} +1 -1
  157. package/{localRecall-2J6QPOK2.js → localRecall-BDYKXB46.js} +3 -1
  158. package/{localRuntimeAdapter-TFYOA6YE.js → localRuntimeAdapter-KAG3T4LF.js} +109 -110
  159. package/{machineCommands-WFWV25IR.js → machineCommands-6NIQJE2A.js} +111 -112
  160. package/{machineWsRunDispatch-ZGXC3F2R.js → machineWsRunDispatch-RA5NOSGG.js} +100 -101
  161. package/{memberThunks-JRYNONYV.js → memberThunks-7Y3OYSJQ.js} +15 -15
  162. package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
  163. package/{models-CXINDUJA.js → models-H5NNZRLH.js} +2 -2
  164. package/{overlay-THLKYIWY.js → overlay-BBQZXGYI.js} +5 -3
  165. package/package.json +1 -1
  166. package/{projectArchive-ULJDLUA6.js → projectArchive-OIUP63MV.js} +42 -41
  167. package/{providerPresetApply-SHT2SUVB.js → providerPresetApply-WHAMP2D5.js} +6 -6
  168. package/{providerRegistry-TA7EGCVZ.js → providerRegistry-ZI2KORJ7.js} +6 -6
  169. package/{read-Q7GOHGNP.js → read-TYMBGEXO.js} +8 -8
  170. package/{readDocTool-Z5OQ6422.js → readDocTool-SKQVHBLO.js} +1 -1
  171. package/{readlineWorkspace-LTCV2BFW.js → readlineWorkspace-ZGC4KSXG.js} +3946 -4393
  172. package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-F5QE2O2B.js} +16 -16
  173. package/{runAgentClientLoop-BVIEQUB3.js → runAgentClientLoop-NKUW2DSJ.js} +71 -67
  174. package/{runtimeDoctorCommands-I47JN4HS.js → runtimeDoctorCommands-RRKPBGVO.js} +14 -14
  175. package/{secretCommands-LJXOOYA7.js → secretCommands-KZWBZIYS.js} +4 -4
  176. package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-72L27ERM.js} +13 -13
  177. package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-GJJDUSGJ.js} +16 -16
  178. package/{settingThunks-AXTBX3Q5.js → settingThunks-ZRGWVGZD.js} +15 -15
  179. package/{skillDiscovery-B5V23AXP.js → skillDiscovery-I37M5KJC.js} +3 -3
  180. package/{spaceCommands-IB6FKWIC.js → spaceCommands-MEH3HJBC.js} +53 -52
  181. package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
  182. package/{streamAgentChatTurn-DNYFHBJM.js → streamAgentChatTurn-FJTUUXHJ.js} +89 -128
  183. package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-IIJBPND3.js} +14 -14
  184. package/{tableCommands-HITDSLHS.js → tableCommands-FTAOCBTX.js} +11 -11
  185. package/{tools-JVOJ5HC4.js → tools-ZXHIAOSP.js} +58 -58
  186. package/tuiRestart-2IL37YIB.js +41 -0
  187. package/{tuiSummaryLlmCaller-7LWYTHLM.js → tuiSummaryLlmCaller-W2QN4VAC.js} +18 -18
  188. package/{updateCommands-RJVCRSBP.js → updateCommands-CPATDG6J.js} +8 -6
  189. package/{updateDialogTitleAction-Q57BOSXG.js → updateDialogTitleAction-JMKLKL4P.js} +36 -35
  190. package/{usageCommand-RVKHEPLU.js → usageCommand-2BF74MKF.js} +2 -2
  191. package/{usageRebuildCommand-GRAFOZF2.js → usageRebuildCommand-UHB55BQM.js} +3 -3
  192. package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-ZFD6J5HF.js} +2 -2
  193. package/chunk-2THCNKE4.js +0 -147
  194. package/chunk-KEPOVMF4.js +0 -91
  195. package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
  196. package/{chunk-AGP3YSEC.js → chunk-4N6G2CKP.js} +3 -3
  197. package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
  198. package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
  199. package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
  200. package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
  201. package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-HFJIN5IZ.js} +8 -8
@@ -5,22 +5,18 @@ import {
5
5
  applyTokenUsageToDayStats,
6
6
  require_format
7
7
  } from "./chunk-BUDVRYES.js";
8
- import {
9
- buildDialogAttachmentPlan,
10
- extractFileContentIds
11
- } from "./chunk-KEPOVMF4.js";
12
8
  import {
13
9
  BUILTIN_SUMMARY_LLM_CONFIG
14
10
  } from "./chunk-523DITKR.js";
15
11
  import {
16
12
  runLlm
17
- } from "./chunk-QWYFFHCJ.js";
13
+ } from "./chunk-3NNXR7EH.js";
18
14
  import {
19
15
  isMediaToolConfirmation
20
16
  } from "./chunk-QYPE3TS3.js";
21
17
  import {
22
18
  cleanupCliSessionForDialog
23
- } from "./chunk-GVGOEMNV.js";
19
+ } from "./chunk-RG2DGNL6.js";
24
20
  import {
25
21
  getActiveDialogAgentId,
26
22
  getDialogAgentIds,
@@ -46,11 +42,13 @@ import {
46
42
  require_react
47
43
  } from "./chunk-5FUN7EG4.js";
48
44
  import {
49
- fetchMessages
50
- } from "./chunk-HXER7YJF.js";
45
+ buildDialogAttachmentPlan,
46
+ extractFileContentIds,
47
+ fetchWithTransientRetry
48
+ } from "./chunk-DXWGFL2Z.js";
51
49
  import {
52
50
  addContentAction
53
- } from "./chunk-PVZY6P3S.js";
51
+ } from "./chunk-DEA37IUY.js";
54
52
  import {
55
53
  patch,
56
54
  read,
@@ -58,14 +56,14 @@ import {
58
56
  selectById,
59
57
  upload,
60
58
  write
61
- } from "./chunk-AVHRSJUH.js";
59
+ } from "./chunk-CMMI3DAT.js";
62
60
  import {
63
61
  getRuntimeServerContext,
64
62
  parseOwnerUserIdFromDbKey,
65
63
  resolveUserAuthorityServer,
66
64
  scheduleDeleteReplication,
67
65
  waitForWriteAck
68
- } from "./chunk-2VUZSVAS.js";
66
+ } from "./chunk-R6Z5S5GA.js";
69
67
  import {
70
68
  asyncThunkCreator,
71
69
  buildCreateSlice,
@@ -75,15 +73,18 @@ import {
75
73
  } from "./chunk-7Z6EW7AH.js";
76
74
  import {
77
75
  normalizeTimeFields
78
- } from "./chunk-AGP3YSEC.js";
79
- import {
80
- createClientLogger
81
- } from "./chunk-QQ56R7KS.js";
76
+ } from "./chunk-4N6G2CKP.js";
82
77
  import {
83
78
  selectIdentityToken,
84
79
  selectIdentityUser,
85
80
  selectIdentityUserId
86
81
  } from "./chunk-PXYBUFDB.js";
82
+ import {
83
+ createClientLogger
84
+ } from "./chunk-QQ56R7KS.js";
85
+ import {
86
+ fetchMessages
87
+ } from "./chunk-HXER7YJF.js";
87
88
  import {
88
89
  getRecordTimestamp,
89
90
  getTombstoneTimestamp,
@@ -93,7 +94,10 @@ import {
93
94
  import {
94
95
  applyBuiltinAgentRuntimeOverride,
95
96
  resolveBuiltinPlatformAgentRecord
96
- } from "./chunk-JVRQ6YVK.js";
97
+ } from "./chunk-S6K5F3KP.js";
98
+ import {
99
+ getApproxPricePerImage
100
+ } from "./chunk-4JH2UMJR.js";
97
101
  import {
98
102
  DEFAULT_AUTO_EXECUTION_PROFILE,
99
103
  EMPTY_ASSISTANT_FALLBACK_MESSAGE,
@@ -108,7 +112,7 @@ import {
108
112
  isCodexOAuthAgent,
109
113
  normalizeAttachmentPart,
110
114
  resolveAutoExecutionProfile
111
- } from "./chunk-XWGDCWXY.js";
115
+ } from "./chunk-QRGDJA4B.js";
112
116
  import {
113
117
  isDevinOAuthAgent
114
118
  } from "./chunk-5ZUL4CUO.js";
@@ -128,7 +132,7 @@ import {
128
132
  runSummaryWithContract,
129
133
  selectSummaryRoute,
130
134
  serializeMessageContent
131
- } from "./chunk-HCJFGH6Y.js";
135
+ } from "./chunk-L32W3PRP.js";
132
136
  import {
133
137
  isOAuthApiKeyRef
134
138
  } from "./chunk-UKZX3NHN.js";
@@ -138,12 +142,15 @@ import {
138
142
  import {
139
143
  isAbortError
140
144
  } from "./chunk-7DPNBQSV.js";
145
+ import {
146
+ estimateTokenCount
147
+ } from "./chunk-PSCNXBYA.js";
141
148
  import {
142
149
  nolotusId
143
- } from "./chunk-KN3HEZIQ.js";
150
+ } from "./chunk-EVGU5P4U.js";
144
151
  import {
145
152
  isBuiltinPlatformAgentKey
146
- } from "./chunk-UJKTI5PG.js";
153
+ } from "./chunk-ILHQ2AXT.js";
147
154
  import {
148
155
  extractCustomId,
149
156
  extractUserId
@@ -159,11 +166,8 @@ import {
159
166
  dialogMessageKey
160
167
  } from "./chunk-OJKUU3LP.js";
161
168
  import {
162
- getApproxPricePerImage
163
- } from "./chunk-4JH2UMJR.js";
164
- import {
165
- estimateTokenCount
166
- } from "./chunk-PSCNXBYA.js";
169
+ API_ENDPOINTS
170
+ } from "./chunk-LCBAMY2M.js";
167
171
  import {
168
172
  toErrorMessage
169
173
  } from "./chunk-HNMXYYJR.js";
@@ -173,10 +177,19 @@ import {
173
177
  import {
174
178
  findModelConfig,
175
179
  getModelConfig
176
- } from "./chunk-LE6LGAJE.js";
180
+ } from "./chunk-CD3RU7XL.js";
177
181
  import {
178
182
  isRecord
179
183
  } from "./chunk-KUG52IAP.js";
184
+ import {
185
+ asOptionalFiniteNumber
186
+ } from "./chunk-WWC7I6TA.js";
187
+ import {
188
+ asOptionalTrimmedString
189
+ } from "./chunk-G3SUCT4W.js";
190
+ import {
191
+ normalizeServerOrigin
192
+ } from "./chunk-CF7PE763.js";
180
193
  import {
181
194
  PLATFORM_HOSTED_CLAUDE_FABLE_5_MODEL,
182
195
  PLATFORM_HOSTED_CLAUDE_FABLE_5_PRICE,
@@ -194,22 +207,10 @@ import {
194
207
  isPlatformManagedProvider,
195
208
  resolvePlatformEffectiveModel,
196
209
  resolvePlatformHostedRouting
197
- } from "./chunk-VALBGPM6.js";
210
+ } from "./chunk-OBSEKCVK.js";
198
211
  import {
199
212
  asTrimmedLowercaseString
200
213
  } from "./chunk-QSJ3HFEF.js";
201
- import {
202
- asOptionalFiniteNumber
203
- } from "./chunk-WWC7I6TA.js";
204
- import {
205
- API_ENDPOINTS
206
- } from "./chunk-LCBAMY2M.js";
207
- import {
208
- asOptionalTrimmedString
209
- } from "./chunk-G3SUCT4W.js";
210
- import {
211
- normalizeServerOrigin
212
- } from "./chunk-CF7PE763.js";
213
214
  import {
214
215
  __toESM
215
216
  } from "./chunk-U67V476Y.js";
@@ -265,7 +266,7 @@ function assertUserBatchInput(expected, actual, ids) {
265
266
  function createUserBatchExecution(signal, owns) {
266
267
  let grant;
267
268
  let closed = false;
268
- let inFlight = false;
269
+ let inFlight2 = false;
269
270
  const dispose = () => {
270
271
  closed = true;
271
272
  grant = void 0;
@@ -290,16 +291,16 @@ function createUserBatchExecution(signal, owns) {
290
291
  return valid() && same(key, receipt);
291
292
  },
292
293
  authorize(key, receipt, input) {
293
- if (!valid() || inFlight) throw new Error("User batch execution ownership lost; blocked");
294
+ if (!valid() || inFlight2) throw new Error("User batch execution ownership lost; blocked");
294
295
  orderedUserBatchInput(input, receipt.messageIds);
295
296
  grant = { dialogKey: key, receipt: { ...receipt, messageIds: [...receipt.messageIds] }, input: structuredClone(input) };
296
297
  },
297
298
  async start(key, receipt, input, invoke) {
298
- if (!valid() || !same(key, receipt) || inFlight) {
299
+ if (!valid() || !same(key, receipt) || inFlight2) {
299
300
  dispose();
300
301
  throw new Error("User batch execution permission expired or mismatched; blocked");
301
302
  }
302
- inFlight = true;
303
+ inFlight2 = true;
303
304
  try {
304
305
  assertUserBatchInput(grant.input, input, receipt.messageIds);
305
306
  return await invoke();
@@ -307,7 +308,7 @@ function createUserBatchExecution(signal, owns) {
307
308
  dispose();
308
309
  throw error;
309
310
  } finally {
310
- inFlight = false;
311
+ inFlight2 = false;
311
312
  }
312
313
  }
313
314
  };
@@ -401,6 +402,7 @@ function normalizeRunCompletionShape(record) {
401
402
  ...typeof record.parentDialogId === "string" ? { parentDialogId: record.parentDialogId } : {},
402
403
  ...typeof record.dialogId === "string" ? { dialogId: record.dialogId } : {},
403
404
  ...typeof record.resultFile === "string" ? { resultFile: record.resultFile } : {},
405
+ ...typeof record.continuedFrom === "string" ? { continuedFrom: record.continuedFrom } : {},
404
406
  ...typeof record.ephemeral === "boolean" ? { ephemeral: record.ephemeral } : {},
405
407
  ...record.startedAt !== void 0 ? { startedAt: record.startedAt } : {},
406
408
  ...record.endedAt !== void 0 ? { endedAt: record.endedAt } : {},
@@ -13168,15 +13170,6 @@ function prepareStreamEndPersistInputs(input) {
13168
13170
  }
13169
13171
 
13170
13172
  // packages/chat/messages/messageUnderstandingCapture.ts
13171
- function getLatestUserInputFromMessages(messages) {
13172
- for (let index = messages.length - 1; index >= 0; index -= 1) {
13173
- const message = messages[index];
13174
- if (!message || message.role !== "user") continue;
13175
- const serialized = serializeMessageContent(message.content, "[\u56FE\u7247]")?.trim();
13176
- if (serialized) return serialized;
13177
- }
13178
- return null;
13179
- }
13180
13173
  function getDialogSpaceIdFromState(state, dialogKey) {
13181
13174
  if (!dialogKey) return void 0;
13182
13175
  const dialog = selectById(state, dialogKey);
@@ -13190,32 +13183,117 @@ function resolveMemoryCaptureBaseUrl(state) {
13190
13183
  return currentServer.replace(/\/+$/, "");
13191
13184
  }
13192
13185
  async function captureUnderstandingFromCompletedUiTurn(input) {
13193
- if (input.assistantText.trim() === "") return;
13194
- if (input.toolCalls && input.toolCalls.length > 0) return;
13195
- if (!input.agentKey) return;
13196
- const latestUserInput = getLatestUserInputFromMessages(input.messages);
13197
- if (!latestUserInput) return;
13186
+ if (!input.assistantText.trim() || input.toolCalls?.length || !input.agentKey) {
13187
+ return { status: "skipped", reason: "incomplete_turn" };
13188
+ }
13189
+ const source = input.messages.findLast((message) => message?.role === "user");
13190
+ if (!source || !/^[A-Za-z0-9_-]{1,128}$/.test(source.id ?? "") || source.dbKey !== dialogMessageKey(input.dialogId, source.id)) {
13191
+ return { status: "skipped", reason: "missing_persisted_user" };
13192
+ }
13198
13193
  const state = input.state;
13194
+ const persisted = state?.db ? selectById(state, source.dbKey) : void 0;
13195
+ if (!persisted || persisted.id !== source.id || persisted.dbKey !== source.dbKey || persisted.role !== "user" || persisted.metadata?.queueState === "pending" || persisted.deleted || persisted.isDeleted || typeof persisted.content !== "string" || !persisted.content.trim() || persisted.content !== source.content) {
13196
+ return { status: "skipped", reason: "missing_persisted_user" };
13197
+ }
13199
13198
  const token = selectIdentityToken(state) ?? null;
13200
13199
  const baseUrl = resolveMemoryCaptureBaseUrl(state);
13201
- if (!token || !baseUrl) return;
13202
- const dialog = input.dialogKey ? selectById(state, input.dialogKey) : void 0;
13200
+ if (!token || !baseUrl) return { status: "skipped", reason: "unavailable" };
13201
+ const body = JSON.stringify({
13202
+ agentKey: input.agentKey,
13203
+ dialogId: input.dialogId,
13204
+ userMessageId: persisted.id,
13205
+ userInput: persisted.content,
13206
+ assistantText: input.assistantText,
13207
+ spaceId: input.spaceId ?? getDialogSpaceIdFromState(state, input.dialogKey)
13208
+ });
13209
+ const key = JSON.stringify([baseUrl, token, body]);
13210
+ const existing = inFlight.get(key);
13211
+ if (existing && existing.signal === input.signal) return existing.promise;
13212
+ const promise = runCapture(input, persisted.dbKey, baseUrl, token, body);
13213
+ const entry = { signal: input.signal, promise };
13214
+ inFlight.set(key, entry);
13203
13215
  try {
13204
- await fetch(`${baseUrl}/api/memory/capture-turn`, {
13205
- method: "POST",
13206
- headers: {
13207
- "Content-Type": "application/json",
13208
- Authorization: `Bearer ${token}`
13216
+ return await promise;
13217
+ } finally {
13218
+ if (inFlight.get(key) === entry) inFlight.delete(key);
13219
+ }
13220
+ }
13221
+ var inFlight = /* @__PURE__ */ new Map();
13222
+ async function runCapture(input, sourceKey, baseUrl, token, body) {
13223
+ const controller = new AbortController();
13224
+ const cancel = () => controller.abort();
13225
+ input.signal?.addEventListener("abort", cancel, { once: true });
13226
+ if (input.signal?.aborted) cancel();
13227
+ const requestedTimeout = input.timeoutMs ?? 8e3;
13228
+ const timeoutMs = Number.isFinite(requestedTimeout) ? Math.max(1, Math.min(8e3, requestedTimeout)) : 8e3;
13229
+ const timer = setTimeout(cancel, timeoutMs);
13230
+ const signal = controller.signal;
13231
+ const bounded = (operation) => new Promise((resolve, reject) => {
13232
+ const abort = () => reject(new Error("capture aborted"));
13233
+ if (signal.aborted) {
13234
+ reject(new Error("capture aborted"));
13235
+ return;
13236
+ }
13237
+ signal.addEventListener("abort", abort, { once: true });
13238
+ operation.then(resolve, reject).finally(() => signal.removeEventListener("abort", abort));
13239
+ });
13240
+ try {
13241
+ if (signal.aborted) return { status: "failed", reason: "cancelled" };
13242
+ const ack = await bounded(waitForWriteAck(sourceKey, { targetServer: baseUrl, timeoutMs }));
13243
+ if (ack.timedOut) return { status: "failed", reason: "replication_timeout" };
13244
+ if (!["acked", "unknown"].includes(ack.outcome.status) || ack.waitTarget === "primary-fallback") {
13245
+ return { status: "failed", reason: "replication_failed" };
13246
+ }
13247
+ const response = await bounded(fetchWithTransientRetry(
13248
+ async (url, init2) => {
13249
+ if (signal.aborted) throw new Error("capture aborted");
13250
+ return bounded(fetch(url, init2));
13251
+ },
13252
+ `${baseUrl}/api/memory/capture-turn`,
13253
+ {
13254
+ method: "POST",
13255
+ headers: {
13256
+ "Content-Type": "application/json",
13257
+ Authorization: `Bearer ${token}`
13258
+ },
13259
+ body,
13260
+ signal
13209
13261
  },
13210
- body: JSON.stringify({
13211
- agentKey: input.agentKey,
13212
- dialogId: input.dialogId,
13213
- userInput: latestUserInput,
13214
- assistantText: input.assistantText,
13215
- spaceId: input.spaceId ?? getDialogSpaceIdFromState(state, input.dialogKey)
13216
- })
13217
- });
13262
+ {
13263
+ maxAttempts: 3,
13264
+ coreDrainingMaxAttempts: 3,
13265
+ // Never replay an ambiguous application-level 422 or permanent 401/403.
13266
+ retryableStatuses: /* @__PURE__ */ new Set([429, 502, 503, 504]),
13267
+ sleep: (ms) => bounded(new Promise((resolve) => {
13268
+ const timer2 = setTimeout(done, Math.min(ms, 2e3));
13269
+ function done() {
13270
+ clearTimeout(timer2);
13271
+ signal.removeEventListener("abort", done);
13272
+ resolve();
13273
+ }
13274
+ signal.addEventListener("abort", done, { once: true });
13275
+ }))
13276
+ }
13277
+ ));
13278
+ if (!response.ok) return { status: "failed", reason: "http", httpStatus: response.status };
13279
+ let responseBody;
13280
+ try {
13281
+ responseBody = await bounded(response.json());
13282
+ } catch {
13283
+ if (signal.aborted) throw new Error("capture aborted");
13284
+ return { status: "failed", reason: "invalid_response" };
13285
+ }
13286
+ const native = responseBody?.nativeCapture;
13287
+ if (native && ["captured", "skipped", "failed"].includes(native.capture) && ["applied", "no_op", "deferred", "failed"].includes(native.formation)) {
13288
+ return { status: "native", capture: native.capture, formation: native.formation };
13289
+ }
13290
+ if (!native && responseBody?.success === true) return { status: "legacy_acknowledged" };
13291
+ return { status: "failed", reason: "invalid_response" };
13218
13292
  } catch {
13293
+ return { status: "failed", reason: signal.aborted ? input.signal?.aborted ? "cancelled" : "timeout" : "network" };
13294
+ } finally {
13295
+ clearTimeout(timer);
13296
+ input.signal?.removeEventListener("abort", cancel);
13219
13297
  }
13220
13298
  }
13221
13299
 
@@ -14267,12 +14345,17 @@ var messageSlice = createSliceWithThunks({
14267
14345
  }
14268
14346
  captureUnderstandingFromCompletedUiTurn2({
14269
14347
  state: getState(),
14348
+ signal,
14270
14349
  agentKey: agentConfig?.dbKey,
14271
14350
  dialogId,
14272
14351
  dialogKey,
14273
14352
  spaceId: payload.spaceId,
14274
14353
  assistantText: textContent,
14275
14354
  toolCalls
14355
+ }).then((result) => {
14356
+ if (result.status === "failed" || result.status === "native" && (result.capture === "failed" || result.formation === "failed" || result.formation === "deferred")) {
14357
+ console.warn("Understanding memory capture incomplete:", result);
14358
+ }
14276
14359
  }).catch(
14277
14360
  (err) => console.error("Understanding memory capture failed:", err)
14278
14361
  );
@@ -14426,7 +14509,7 @@ var messageSlice = createSliceWithThunks({
14426
14509
  runtimeOptions: args.runtimeOptions
14427
14510
  });
14428
14511
  if (agentKeyToUse) {
14429
- const { streamAgentChatTurn } = await import("./agentSlice-ACZGTZVW.js");
14512
+ const { streamAgentChatTurn } = await import("./agentSlice-DPG7Q7IA.js");
14430
14513
  await dispatch(
14431
14514
  streamAgentChatTurn({
14432
14515
  agentKey: agentKeyToUse,
@@ -15497,7 +15580,7 @@ var deleteOwnedDialogAttachments = async (args) => {
15497
15580
  metadataReadFailures
15498
15581
  });
15499
15582
  if (!plan.deleteCandidates.length) return plan;
15500
- const { deleteFileAction } = await import("./deleteFile-Q3YDB4ML.js");
15583
+ const { deleteFileAction } = await import("./deleteFile-6URDHYRB.js");
15501
15584
  for (const candidate of plan.deleteCandidates) {
15502
15585
  if (candidate.fileDbKey) {
15503
15586
  await deleteFileAction(candidate.fileDbKey, args.thunkApi);
@@ -15559,7 +15642,7 @@ var deleteDialogThunk = async (payload, thunkApi) => {
15559
15642
  }
15560
15643
  if (isCurrentDialog) {
15561
15644
  await thunkApi.dispatch(resetMsgs());
15562
- const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-HXPKFGRL.js");
15645
+ const { clearPendingAttachments: clearPendingAttachments2 } = await import("./dialogSlice-DP2WTMNO.js");
15563
15646
  dispatch(clearPendingAttachments2());
15564
15647
  }
15565
15648
  return { dialogKey, isCurrentDialog, attachmentPlan };
@@ -15567,39 +15650,39 @@ var deleteDialogThunk = async (payload, thunkApi) => {
15567
15650
 
15568
15651
  // packages/chat/dialog/dialogSlice.ts
15569
15652
  var runCreateDialogAction = async (args, thunkApi) => {
15570
- const { createDialogAction } = await import("./createDialogAction-KWSBNAPJ.js");
15653
+ const { createDialogAction } = await import("./createDialogAction-KBKMYFTQ.js");
15571
15654
  return createDialogAction(args, thunkApi);
15572
15655
  };
15573
15656
  var runCreateAgentAutomationAction = async (args, thunkApi) => {
15574
- const { createAgentAutomationAction } = await import("./createAgentAutomationAction-KHA4MXUJ.js");
15657
+ const { createAgentAutomationAction } = await import("./createAgentAutomationAction-TBIIO5WT.js");
15575
15658
  return createAgentAutomationAction(args, thunkApi);
15576
15659
  };
15577
15660
  var runUpdateDialogTitleAction = async (args, thunkApi) => {
15578
- const { updateDialogTitleAction } = await import("./updateDialogTitleAction-Q57BOSXG.js");
15661
+ const { updateDialogTitleAction } = await import("./updateDialogTitleAction-JMKLKL4P.js");
15579
15662
  return updateDialogTitleAction(args, thunkApi);
15580
15663
  };
15581
15664
  var runAddDialogAgentAction = async (args, thunkApi) => {
15582
- const { addDialogAgentAction } = await import("./addDialogAgentAction-RSDZDASD.js");
15665
+ const { addDialogAgentAction } = await import("./addDialogAgentAction-EVYBGTXB.js");
15583
15666
  return addDialogAgentAction(args, thunkApi);
15584
15667
  };
15585
15668
  var runRemoveDialogAgentAction = async (args, thunkApi) => {
15586
- const { removeDialogAgentAction } = await import("./removeDialogAgentAction-U3F2MNAY.js");
15669
+ const { removeDialogAgentAction } = await import("./removeDialogAgentAction-F5QE2O2B.js");
15587
15670
  return removeDialogAgentAction(args, thunkApi);
15588
15671
  };
15589
15672
  var runSetPrimaryDialogAgentAction = async (args, thunkApi) => {
15590
- const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-6FHAHZBB.js");
15673
+ const { setPrimaryDialogAgentAction } = await import("./setPrimaryDialogAgentAction-GJJDUSGJ.js");
15591
15674
  return setPrimaryDialogAgentAction(args, thunkApi);
15592
15675
  };
15593
15676
  var runSwitchDialogAgentAction = async (args, thunkApi) => {
15594
- const { switchDialogAgentAction } = await import("./switchDialogAgentAction-UOFIAGPL.js");
15677
+ const { switchDialogAgentAction } = await import("./switchDialogAgentAction-IIJBPND3.js");
15595
15678
  return switchDialogAgentAction(args, thunkApi);
15596
15679
  };
15597
15680
  var runSetDialogExtraReferencesAction = async (args, thunkApi) => {
15598
- const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-G3WSJ7EM.js");
15681
+ const { setDialogExtraReferencesAction } = await import("./setDialogExtraReferencesAction-72L27ERM.js");
15599
15682
  return setDialogExtraReferencesAction(args, thunkApi);
15600
15683
  };
15601
15684
  var runHandleSendMessageAction = async (args, thunkApi) => {
15602
- const { handleSendMessageAction } = await import("./handleSendMessageAction-NWYG3Q72.js");
15685
+ const { handleSendMessageAction } = await import("./handleSendMessageAction-IUGVVJ43.js");
15603
15686
  return handleSendMessageAction(args, thunkApi);
15604
15687
  };
15605
15688
  function clearDialogState() {
@@ -15612,7 +15695,7 @@ var createPageAndAddReference = createAsyncThunk(
15612
15695
  async (payload, { dispatch, getState, rejectWithValue }) => {
15613
15696
  const { slateData, jsonData, title, type, fileId, groupId, dialogKey } = payload;
15614
15697
  try {
15615
- const { createDocState } = await import("./docStore-A2B3GH33.js");
15698
+ const { createDocState } = await import("./docStore-NDY3K3PK.js");
15616
15699
  const pageKey = await createDocState(
15617
15700
  { slateData, title },
15618
15701
  { dispatch, getState }
@@ -15777,20 +15860,20 @@ var selectCurrentDialogTokens = createSelector(
15777
15860
  var selectTotalDialogTokens = selectCurrentDialogTokens;
15778
15861
 
15779
15862
  export {
15780
- normalizeRunCompletionShape,
15781
- createTurnRequest,
15782
- isAgentRunStatusNormal,
15783
- isAgentRunStartFailureStatus,
15784
- uiAskChoiceFunctionSchema,
15785
- validateAskChoiceInput,
15786
- uiAskChoiceFunc,
15787
- parseUiAskChoiceContent,
15788
15863
  API_REPORTED_COST_MULTIPLIER,
15789
15864
  estimateMessagesTokens,
15790
15865
  historyTokensBeforeLatestAssistant,
15791
15866
  resolveOccupancy,
15792
15867
  resolveOccupancyWindow,
15793
15868
  resolveAgentContextWindow,
15869
+ isAgentRunStatusNormal,
15870
+ isAgentRunStartFailureStatus,
15871
+ uiAskChoiceFunctionSchema,
15872
+ validateAskChoiceInput,
15873
+ uiAskChoiceFunc,
15874
+ parseUiAskChoiceContent,
15875
+ normalizeRunCompletionShape,
15876
+ createTurnRequest,
15794
15877
  runtime_default,
15795
15878
  snapshotUserBatchInput,
15796
15879
  createUserBatchExecution,
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-UAD2WT54.js";
7
7
  import {
8
8
  toTimestampMs
9
- } from "./chunk-AVHRSJUH.js";
9
+ } from "./chunk-CMMI3DAT.js";
10
10
  import {
11
11
  __toESM
12
12
  } from "./chunk-U67V476Y.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  patch,
9
9
  readAndWait
10
- } from "./chunk-AVHRSJUH.js";
10
+ } from "./chunk-CMMI3DAT.js";
11
11
  import {
12
12
  toErrorMessage
13
13
  } from "./chunk-HNMXYYJR.js";
@@ -335,7 +335,7 @@ async function saveDocState(arg, { dispatch, getState }) {
335
335
  ).unwrap();
336
336
  if (dbSpaceId) {
337
337
  try {
338
- const { updateContentTitle } = await import("./contentThunks-G3TRPEAU.js");
338
+ const { updateContentTitle } = await import("./contentThunks-YEPZAHXU.js");
339
339
  await dispatch(
340
340
  updateContentTitle({
341
341
  spaceId: dbSpaceId,
@@ -378,7 +378,7 @@ async function saveDocState(arg, { dispatch, getState }) {
378
378
  }
379
379
  }
380
380
  async function createDocState(args, thunkApi) {
381
- const { createPageAction } = await import("./createPageAction-HXKJ7OFG.js");
381
+ const { createPageAction } = await import("./createPageAction-3FGAPLJO.js");
382
382
  return createPageAction(args, thunkApi);
383
383
  }
384
384
  function subscribe(listener) {
@@ -0,0 +1,32 @@
1
+ import {
2
+ resolveModelReasoningCapability
3
+ } from "./chunk-CD3RU7XL.js";
4
+
5
+ // packages/ai/agent/defaultReasoningEffort.ts
6
+ var defaults = {
7
+ "gpt-6.1-sol": "medium",
8
+ "gpt-6.1-terra": "medium",
9
+ "gpt-6-luna": "medium",
10
+ "gpt-6-astra": "high",
11
+ "claude-opus-5-5": "medium",
12
+ "claude-sonnet-5-5": "high",
13
+ "deepseek-flash": "high",
14
+ "deepseek-v4-flash": "high",
15
+ "deepseek-v4.1-flash": "high"
16
+ };
17
+ var deepseekChannels = /* @__PURE__ */ new Set(["opendesign", "ollama-cloud", "lithosai"]);
18
+ var providers = /* @__PURE__ */ new Set(["nolo", "openai", "openrouter", "anthropic", "deepseek", "commandcode", "opencode-go", "stepfun"]);
19
+ function resolveDefaultReasoningEffort(input) {
20
+ const provider = (input.provider ?? "").toLowerCase();
21
+ const model = (input.model ?? "").toLowerCase().split("/").pop() ?? "";
22
+ const isDeepseekFlash = ["deepseek-flash", "deepseek-v4-flash", "deepseek-v4.1-flash"].includes(model);
23
+ const effort = providers.has(provider) || deepseekChannels.has(provider) && isDeepseekFlash ? defaults[model] : void 0;
24
+ if (!effort) return input.fallback;
25
+ if (provider === "nolo" && model.startsWith("claude-") && input.model?.startsWith("anthropic/")) return effort;
26
+ if (provider === "anthropic" && model.startsWith("claude-")) return effort;
27
+ return resolveModelReasoningCapability(provider, input.model).efforts.includes(effort) ? effort : input.fallback;
28
+ }
29
+
30
+ export {
31
+ resolveDefaultReasoningEffort
32
+ };
@@ -4,7 +4,7 @@ import {
4
4
  openrouterModels,
5
5
  platformHostedModels,
6
6
  zaiModels
7
- } from "./chunk-VALBGPM6.js";
7
+ } from "./chunk-OBSEKCVK.js";
8
8
 
9
9
  // packages/ai/llm/modelAbility.ts
10
10
  var MODEL_ABILITY_TABLE = {
@@ -2,7 +2,7 @@ import {
2
2
  getCurrentSpaceIdRaw,
3
3
  setCurrentSpaceBoth,
4
4
  setSpaceInitialized
5
- } from "./chunk-MOMR7NMG.js";
5
+ } from "./chunk-547ENH5T.js";
6
6
  import {
7
7
  createSpaceKey,
8
8
  normalizeSpaceId
@@ -10,7 +10,7 @@ import {
10
10
  import {
11
11
  fetchFromServer,
12
12
  getAllServers
13
- } from "./chunk-AGP3YSEC.js";
13
+ } from "./chunk-4N6G2CKP.js";
14
14
  import {
15
15
  selectIdentityToken,
16
16
  selectIdentityUserId
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  createCliLocalRuntimeAdapter,
3
3
  summarizeEndpoint
4
- } from "./chunk-KO63FPG3.js";
4
+ } from "./chunk-SZVMASJ2.js";
5
5
  import {
6
6
  clipMultilineText
7
- } from "./chunk-3N4ASIP6.js";
7
+ } from "./chunk-LMRRCEDE.js";
8
8
  import {
9
9
  runLocalAgentTurn
10
- } from "./chunk-TVFRV3UQ.js";
10
+ } from "./chunk-JUSHVFNF.js";
11
11
  import {
12
12
  applyToolSurfaceConstraints
13
- } from "./chunk-SOF4OWDM.js";
13
+ } from "./chunk-VS276URX.js";
14
14
  import {
15
15
  resolveLocalRuntimeEnvFromPolicy
16
- } from "./chunk-47ITIXO7.js";
16
+ } from "./chunk-USGHJSGO.js";
17
17
  import {
18
18
  asRecordOrEmpty
19
19
  } from "./chunk-KX6YBIHG.js";
@@ -23,13 +23,22 @@ import {
23
23
  import {
24
24
  asTrimmedNonEmptyStringArray
25
25
  } from "./chunk-I42VC5KR.js";
26
+ import {
27
+ asOptionalPositiveFiniteNumber
28
+ } from "./chunk-U6VC4MU4.js";
29
+ import {
30
+ parseUserIdFromAuthToken
31
+ } from "./chunk-BIDSIRTS.js";
32
+ import {
33
+ DEFAULT_NOLO_SERVER_URL
34
+ } from "./chunk-OLZBQWZU.js";
26
35
  import {
27
36
  readPipeText,
28
37
  spawnProcess
29
38
  } from "./chunk-4O22PGNQ.js";
30
39
  import {
31
40
  t
32
- } from "./chunk-OB6DVWPF.js";
41
+ } from "./chunk-262R3XNN.js";
33
42
  import {
34
43
  toErrorMessage
35
44
  } from "./chunk-HNMXYYJR.js";
@@ -39,15 +48,6 @@ import {
39
48
  import {
40
49
  isRecord
41
50
  } from "./chunk-KUG52IAP.js";
42
- import {
43
- asOptionalPositiveFiniteNumber
44
- } from "./chunk-U6VC4MU4.js";
45
- import {
46
- parseUserIdFromAuthToken
47
- } from "./chunk-2THCNKE4.js";
48
- import {
49
- DEFAULT_NOLO_SERVER_URL
50
- } from "./chunk-OLZBQWZU.js";
51
51
  import {
52
52
  asOptionalTrimmedString
53
53
  } from "./chunk-G3SUCT4W.js";