nolo-cli 0.224.0-alpha.2 → 0.224.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 (237) hide show
  1. package/{_executeModel-4WBUORCW.js → _executeModel-5NA4USGG.js} +77 -71
  2. package/{action-CK64LS6S.js → action-X75O3XPH.js} +11 -8
  3. package/{addContentAction-EQXMFNPR.js → addContentAction-GVC77QSN.js} +14 -13
  4. package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-KKDVAMW3.js} +15 -14
  5. package/{agentDeleteCommand-BB6KU5AO.js → agentDeleteCommand-2RFGKFAB.js} +127 -119
  6. package/{agentEmailCommands-KMHPL6OH.js → agentEmailCommands-GQCQKKOR.js} +126 -114
  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-HSGLDPDQ.js} +110 -495
  10. package/{agentMachineCommands-OC5D4YZW.js → agentMachineCommands-BISF6PVV.js} +63 -57
  11. package/{agentProviderCommands-ZCH37KAL.js → agentProviderCommands-O3Q25PKU.js} +6 -6
  12. package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-G6U2LHMW.js} +6 -6
  13. package/agentRecordCommands-AOXPGYAJ.js +189 -0
  14. package/{agentRunCommand-M22Y3D5U.js → agentRunCommand-AFAIP7U7.js} +129 -115
  15. package/{agentRunControl-QDFW5P2T.js → agentRunControl-VBL7UFSG.js} +20 -14
  16. package/{agentRuntimeLocal-SD7U2EGY.js → agentRuntimeLocal-T7BX2WGL.js} +47 -41
  17. package/{agentSlice-AJPMMBOP.js → agentSlice-XJNKE3PG.js} +18 -17
  18. package/{appDeleteCommands-NE3NQQJL.js → appDeleteCommands-LURUSPY7.js} +56 -50
  19. package/{appDeployCommands-2BAHY522.js → appDeployCommands-SMEW4AK2.js} +56 -50
  20. package/{appDeployStatusCommands-JTW6LZNC.js → appDeployStatusCommands-VYPJTBJK.js} +56 -50
  21. package/{appGetCommands-WKFEJO6A.js → appGetCommands-N4NI5GGJ.js} +56 -50
  22. package/{appListCommands-HNAZZLFX.js → appListCommands-5C6ONN3Z.js} +56 -50
  23. package/{authCommand-VQP625QS.js → authCommand-4CVBDADE.js} +29 -28
  24. package/{authCommands-PAKU3CJZ.js → authCommands-EHU2BHOX.js} +12 -11
  25. package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-AYWYQVA4.js} +4 -4
  26. package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-CSDG2HYN.js} +6 -6
  27. package/{chunk-OOF7XDZF.js → chunk-2574ANSV.js} +6 -6
  28. package/chunk-2SXN7LAY.js +15 -0
  29. package/{chunk-OGHP3CTL.js → chunk-2X7WFDT6.js} +1 -1
  30. package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
  31. package/{chunk-D726I5AZ.js → chunk-3EMIEC27.js} +2 -2
  32. package/{chunk-XUJZYUIM.js → chunk-3FBAVU2Y.js} +24 -22
  33. package/{chunk-YL3EFYL3.js → chunk-4D4QD7FT.js} +3 -1
  34. package/{chunk-5RKUPJYL.js → chunk-4FIO2S7Z.js} +11 -3
  35. package/{chunk-EK7PGVPY.js → chunk-4IQVE43Z.js} +63 -32
  36. package/{chunk-6NKA6RKF.js → chunk-4Q6HQORG.js} +8 -8
  37. package/{chunk-P2ZLUIW2.js → chunk-4X5AVCM7.js} +94 -4
  38. package/chunk-4ZCTKB27.js +31 -0
  39. package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
  40. package/{chunk-4A2JIXR2.js → chunk-5QZSEQSK.js} +1 -1
  41. package/chunk-5ZUOVCKT.js +32 -0
  42. package/{chunk-TRWT3EE3.js → chunk-62HXNQVV.js} +1 -1
  43. package/{chunk-JC5XLWZK.js → chunk-6CKUO32A.js} +27 -15
  44. package/chunk-6D25V6CB.js +133 -0
  45. package/chunk-6WOLPIPY.js +379 -0
  46. package/{chunk-KOXKKHFE.js → chunk-6WZVM33D.js} +9 -4
  47. package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
  48. package/{chunk-ULK35M44.js → chunk-7AJRJGSQ.js} +1049 -2860
  49. package/chunk-7NIBQ4HY.js +138 -0
  50. package/{chunk-7Z6EW7AH.js → chunk-7TTMMOKH.js} +13 -6
  51. package/{chunk-ZLOSGVCQ.js → chunk-A3LUWRQK.js} +15 -15
  52. package/{chunk-C4WTX5TU.js → chunk-A5EVA6HU.js} +2 -2
  53. package/{chunk-ZLNHUFOF.js → chunk-A74QP4FI.js} +2613 -1297
  54. package/{chunk-ME4XUFTD.js → chunk-AEQMKYZN.js} +15 -15
  55. package/{chunk-6E2NWYT4.js → chunk-AH5R7BYW.js} +22 -176
  56. package/{chunk-H7R3365N.js → chunk-ANJRDS6U.js} +8 -5
  57. package/{chunk-YFLVRVYK.js → chunk-AVJDELEA.js} +1 -1
  58. package/{chunk-GIABSSWQ.js → chunk-B5SV4H3J.js} +4 -4
  59. package/{chunk-S7RA7A4X.js → chunk-B7DE5XJW.js} +387 -347
  60. package/chunk-BEM6LPD2.js +734 -0
  61. package/{chunk-SRL56PI2.js → chunk-BGGAY6OK.js} +46 -8
  62. package/{chunk-BKJSRO66.js → chunk-BGGV6B5O.js} +555 -328
  63. package/{chunk-BGGHA5DV.js → chunk-BIABIPGW.js} +1 -1
  64. package/chunk-BIDSIRTS.js +307 -0
  65. package/{chunk-6D7NVU66.js → chunk-BXSMFPTG.js} +17 -14
  66. package/{chunk-Q6HOUF4O.js → chunk-CBUZ6DKA.js} +3 -3
  67. package/{chunk-LE6LGAJE.js → chunk-CD3RU7XL.js} +17 -2
  68. package/{chunk-GVGOEMNV.js → chunk-CKZPMJNU.js} +3 -3
  69. package/{chunk-HJAGA3GR.js → chunk-CVJRVBJL.js} +3 -3
  70. package/chunk-D374I563.js +62 -0
  71. package/{chunk-XWGDCWXY.js → chunk-DNZ4JJ7C.js} +9 -9
  72. package/chunk-DVYAFH2Q.js +103 -0
  73. package/{chunk-PYIMOZSX.js → chunk-DXW5WDHZ.js} +4 -4
  74. package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
  75. package/{chunk-KPAFQHRT.js → chunk-E5KJOZWY.js} +4 -4
  76. package/{chunk-GNHMRBYZ.js → chunk-EBKHA63G.js} +106 -14
  77. package/{chunk-PFJNLBRU.js → chunk-EEOOBRA7.js} +6 -6
  78. package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
  79. package/{chunk-QLFCTYRH.js → chunk-F3XI6WQP.js} +17 -10
  80. package/{chunk-AFHOCBSP.js → chunk-F6YWDVIB.js} +1 -1
  81. package/{chunk-SJYK3LLP.js → chunk-FFYE5ATM.js} +6 -6
  82. package/{chunk-QG3USDTD.js → chunk-FZKA3XFA.js} +21 -21
  83. package/{chunk-C4VAR65S.js → chunk-G22P367E.js} +153 -117
  84. package/{chunk-WOIURUUV.js → chunk-GDUC4VS2.js} +12 -12
  85. package/{chunk-2VUZSVAS.js → chunk-GXXY2NL3.js} +22 -20
  86. package/{chunk-IWH5SOU4.js → chunk-H7ZYKHAZ.js} +38 -18
  87. package/{chunk-G2EJ7NL4.js → chunk-HBRDSQ3M.js} +2 -2
  88. package/{chunk-EGXPAWLG.js → chunk-HCNOO374.js} +1 -1
  89. package/{chunk-DJSTBAOU.js → chunk-HOM6LTEW.js} +4 -4
  90. package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
  91. package/{chunk-RXJ26SQW.js → chunk-IJTXNLQE.js} +13 -13
  92. package/{chunk-UYOICCYG.js → chunk-IUMS6F53.js} +59 -88
  93. package/{chunk-MOMR7NMG.js → chunk-IUTUWIKE.js} +2 -2
  94. package/{chunk-JVRQ6YVK.js → chunk-JBWXPACD.js} +1 -1
  95. package/{chunk-SASHAZ67.js → chunk-KZPEGO6D.js} +13 -2
  96. package/{chunk-HCJFGH6Y.js → chunk-L32W3PRP.js} +46 -16
  97. package/{chunk-GGKNJ42M.js → chunk-LYDEFPQP.js} +18 -108
  98. package/{chunk-K5FNYHZC.js → chunk-MECDGHLK.js} +420 -120
  99. package/{chunk-EOWLBDY6.js → chunk-MM73SP4K.js} +1 -1
  100. package/{chunk-J6T25AJ6.js → chunk-MYOSN6BT.js} +82 -18
  101. package/{chunk-Q7WP5RPC.js → chunk-MYPKBJJO.js} +5 -5
  102. package/{chunk-6RQFZCKH.js → chunk-N2JROHD3.js} +4 -4
  103. package/{chunk-VREDDN25.js → chunk-O6IPRAVV.js} +14 -9
  104. package/{chunk-VALBGPM6.js → chunk-OBSEKCVK.js} +17 -20
  105. package/{chunk-AMEOV5VZ.js → chunk-OOJNQK6V.js} +33 -33
  106. package/{chunk-PPJYZRSQ.js → chunk-OX6GNNVT.js} +6 -1
  107. package/{chunk-5R63B62U.js → chunk-P3IZUMIC.js} +8 -8
  108. package/{chunk-FRSBYNWI.js → chunk-PGKA77TZ.js} +52 -217
  109. package/{chunk-H5LWB3D3.js → chunk-PRMEU7BT.js} +347 -14
  110. package/{chunk-2ZKFCIJJ.js → chunk-PROOOQZ3.js} +1 -1
  111. package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
  112. package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
  113. package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
  114. package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
  115. package/chunk-RETQOQ4D.js +33394 -0
  116. package/{chunk-AVHRSJUH.js → chunk-RM4UMFY4.js} +32 -25
  117. package/{chunk-2OLYKYNY.js → chunk-RTHFJZ6M.js} +8 -8
  118. package/{chunk-OB6DVWPF.js → chunk-S2MHR4PU.js} +164 -4
  119. package/{chunk-IWQAOW2X.js → chunk-SRCCSTIM.js} +8 -8
  120. package/{chunk-PVZY6P3S.js → chunk-T6VROBY7.js} +2 -2
  121. package/{chunk-2KTUDBG7.js → chunk-TEMLHVGX.js} +1 -1
  122. package/{chunk-TVFRV3UQ.js → chunk-TRHJ4NJB.js} +673 -1279
  123. package/{chunk-QVBXJNZ2.js → chunk-TUSTONB3.js} +1 -1
  124. package/{chunk-UMRI2IRY.js → chunk-TWTJV35S.js} +6 -6
  125. package/{chunk-5OZC7R7Y.js → chunk-U3G7RRXJ.js} +13 -12
  126. package/{chunk-CXDPIPZ4.js → chunk-UFC4J7OY.js} +3 -3
  127. package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
  128. package/{chunk-AGP3YSEC.js → chunk-ULLHVDTZ.js} +48 -3
  129. package/{chunk-SYQR7FQS.js → chunk-VM72HKW2.js} +97 -29
  130. package/{chunk-KEN3N2TN.js → chunk-VMJVAJ6W.js} +13 -10
  131. package/{chunk-53X6PS42.js → chunk-VREG6ANQ.js} +103 -100
  132. package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
  133. package/{chunk-SH3IKNCG.js → chunk-VSRISJXZ.js} +15 -8
  134. package/chunk-WDWZPASX.js +29 -0
  135. package/chunk-WFGNWWJI.js +326 -0
  136. package/{chunk-UJKTI5PG.js → chunk-WRKMXMU7.js} +2 -1
  137. package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
  138. package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
  139. package/chunk-X7IA2B7R.js +166 -0
  140. package/{chunk-5ZMIIR23.js → chunk-XBAEM4RI.js} +7 -0
  141. package/{chunk-4JVNURX4.js → chunk-XS5A3EKX.js} +1 -23
  142. package/{chunk-N5Z2V73W.js → chunk-Y2MF4DCJ.js} +1 -1
  143. package/{chunk-EVYGYDPG.js → chunk-Y5OWZQMJ.js} +39 -30
  144. package/{chunk-AK5O76CC.js → chunk-YGCOJNFZ.js} +3 -3
  145. package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
  146. package/{chunk-OK4MZRJ6.js → chunk-Z2WZAE4P.js} +128 -149
  147. package/chunk-Z6YTCDU4.js +24 -0
  148. package/chunk-ZEKUFJLW.js +1438 -0
  149. package/{chunk-KN3HEZIQ.js → chunk-ZVOL2MAJ.js} +1 -1
  150. package/{cliAgentConfigHelpers-PO3MVDME.js → cliAgentConfigHelpers-U5OAVAKQ.js} +12 -12
  151. package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-S42VMGB6.js} +1 -1
  152. package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
  153. package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
  154. package/{cliLocalAgentRecordReader-Z7CH4K4R.js → cliLocalAgentRecordReader-HVZAQCUD.js} +49 -44
  155. package/{commandRegistry-3JVE76K2.js → commandRegistry-TME7INFU.js} +98 -94
  156. package/{contentThunks-SRKUHSBR.js → contentThunks-U6OC4R2N.js} +37 -35
  157. package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-U7XSRVJP.js} +4 -4
  158. package/{createAgentAutomationAction-B4BQV46J.js → createAgentAutomationAction-IP4LFN3W.js} +37 -35
  159. package/{createDialogAction-IONSKZIX.js → createDialogAction-IAGQJ3LH.js} +38 -37
  160. package/{createPageAction-K75KBQOO.js → createPageAction-AZ3UIFKA.js} +38 -36
  161. package/{db-CS4ZJQKV.js → db-M7FU2GNK.js} +9 -6
  162. package/{dbSlice-ZJPDIFER.js → dbSlice-DKKMJJYY.js} +13 -12
  163. package/{deleteFile-Q3YDB4ML.js → deleteFile-TQSONMVU.js} +11 -8
  164. package/{dialogCommands-6KQEBHSG.js → dialogCommands-PCDRMBWG.js} +60 -55
  165. package/dialogMessageRecord-OAV77LT7.js +7 -0
  166. package/{dialogNotifyCommand-WIZFFEY3.js → dialogNotifyCommand-O35MWMOS.js} +13 -13
  167. package/{dialogSlice-GPALSBQM.js → dialogSlice-QAKYN4DE.js} +35 -33
  168. package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-2SSLTXKO.js} +3 -3
  169. package/{docCreateCommands-XZOLWBRC.js → docCreateCommands-CFQFZOAD.js} +54 -48
  170. package/{docDeleteCommands-ZSO4LGWE.js → docDeleteCommands-5CPNTIIS.js} +56 -50
  171. package/{docReadCommands-TTMXCDER.js → docReadCommands-XQILYSAJ.js} +54 -48
  172. package/{docStore-O43KOHIX.js → docStore-GIVRT7TQ.js} +15 -14
  173. package/{docUpdateCommands-PRG6WOXL.js → docUpdateCommands-VETKSUDD.js} +54 -48
  174. package/fetchMessages-TQEUZD7H.js +1 -1
  175. package/{getPricing-YH3VMSVU.js → getPricing-LF5C4XSI.js} +5 -5
  176. package/{handleSendMessageAction-I2GHUSHZ.js → handleSendMessageAction-HKIW4ZNO.js} +70 -66
  177. package/{hostCredentialCreate-V775SKCE.js → hostCredentialCreate-6VDJFNDO.js} +118 -105
  178. package/index.js +56 -18
  179. package/keys-RWF7UCB4.js +1 -1
  180. package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
  181. package/{localDialogRead-SVTPA5GY.js → localDialogRead-AV2VKKPG.js} +1 -1
  182. package/{localRecall-2J6QPOK2.js → localRecall-BDYKXB46.js} +3 -1
  183. package/{localRuntimeAdapter-SAMUDW5S.js → localRuntimeAdapter-BQ4F5PZV.js} +120 -108
  184. package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-WCNA4A3G.js} +4 -2
  185. package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-CRNIBOOM.js} +1 -1
  186. package/{machineCommands-ZXZWGMFE.js → machineCommands-K6XIGOAD.js} +142 -115
  187. package/{machineWsRunDispatch-3ZEI4BEC.js → machineWsRunDispatch-4OO7Z6UM.js} +114 -102
  188. package/mcpLocalAuthorizeCommand-ZP6ESAGE.js +106 -0
  189. package/{memberThunks-JRYNONYV.js → memberThunks-PBJPZ2JU.js} +22 -17
  190. package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
  191. package/{models-CXINDUJA.js → models-H5NNZRLH.js} +2 -2
  192. package/{overlay-THLKYIWY.js → overlay-JA3SPVUS.js} +7 -3
  193. package/package.json +1 -1
  194. package/{projectArchive-V7EYBAX6.js → projectArchive-G7AOQPRW.js} +43 -41
  195. package/{providerPresetApply-SHT2SUVB.js → providerPresetApply-OPBCAONX.js} +6 -6
  196. package/{providerRegistry-TA7EGCVZ.js → providerRegistry-J2HCVTHE.js} +6 -6
  197. package/{read-Q7GOHGNP.js → read-JEGPITEW.js} +10 -9
  198. package/{readDocTool-Z5OQ6422.js → readDocTool-TE3XIU4Y.js} +1 -1
  199. package/{readlineWorkspace-S4VRNWYG.js → readlineWorkspace-SOW5QUGZ.js} +4412 -4279
  200. package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-CX3OAH4Y.js} +17 -16
  201. package/{runAgentClientLoop-MQLOUDF5.js → runAgentClientLoop-HQJPDFGQ.js} +95 -70
  202. package/{runtimeDoctorCommands-I47JN4HS.js → runtimeDoctorCommands-GUH2YGMH.js} +17 -17
  203. package/{secretCommands-LJXOOYA7.js → secretCommands-NJXFVHZU.js} +4 -4
  204. package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-CGM67EEQ.js} +16 -15
  205. package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-3ABWPPXR.js} +17 -16
  206. package/{settingThunks-AXTBX3Q5.js → settingThunks-AY76OHYX.js} +181 -62
  207. package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
  208. package/{spaceCommands-IB6FKWIC.js → spaceCommands-G63QGYQO.js} +59 -53
  209. package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
  210. package/{streamAgentChatTurn-GMNIKJVL.js → streamAgentChatTurn-E3XH2KFD.js} +160 -155
  211. package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-G6EZRKCQ.js} +15 -14
  212. package/{tableCommands-HITDSLHS.js → tableCommands-JI75ZHDI.js} +14 -11
  213. package/{toolApiClient-OGQEBQVX.js → toolApiClient-62UUPDUA.js} +3 -5
  214. package/{tools-MWIF3S4T.js → tools-7RSX22FT.js} +64 -59
  215. package/tuiRestart-KAAA7TND.js +41 -0
  216. package/{tuiSummaryLlmCaller-7LWYTHLM.js → tuiSummaryLlmCaller-BVNHMWLR.js} +19 -19
  217. package/{updateCommands-RJVCRSBP.js → updateCommands-ASK5XYPH.js} +8 -6
  218. package/{updateDialogTitleAction-ZXHMZFSX.js → updateDialogTitleAction-SEWV252V.js} +37 -35
  219. package/{usageCommand-RVKHEPLU.js → usageCommand-JVT5J3DC.js} +3 -3
  220. package/{usageRebuildCommand-GRAFOZF2.js → usageRebuildCommand-IZYYUTEW.js} +4 -4
  221. package/webapi-24RZDIIQ.js +2488 -0
  222. package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-BSDIS2J5.js} +2 -2
  223. package/workContext-MM3P5GP5.js +13 -0
  224. package/workContextAccess-UZHDLBUR.js +11 -0
  225. package/workContextWriteNotice-YCSSMHN4.js +7 -0
  226. package/agentRecordCommands-S2IVVEES.js +0 -177
  227. package/chunk-2THCNKE4.js +0 -147
  228. package/chunk-2WZXXAQD.js +0 -57
  229. package/chunk-652XYZGP.js +0 -352
  230. package/chunk-BJF2MHJ3.js +0 -118
  231. package/chunk-KEPOVMF4.js +0 -91
  232. package/chunk-OXKUPBAQ.js +0 -776
  233. package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
  234. package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
  235. package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
  236. package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
  237. package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-YIZ7KLUP.js} +3 -3
@@ -1,61 +1,66 @@
1
1
  import {
2
- DEFAULT_USER_PREFERENCE_PROFILE,
3
2
  SYSTEM_DEFAULT_AGENT_ID,
4
3
  hasOwn,
5
4
  normalizeAgentUpdateFieldList,
6
5
  normalizeAuthorityHomeServerSetting,
7
6
  normalizeDefaultAgentIdSetting,
8
- normalizeEnabledPromptSkills,
9
- normalizeEnabledSkills,
10
7
  normalizePolicyLevelSetting,
11
8
  normalizeSystemBuiltinSkills,
12
9
  normalizeTonePresetSetting,
10
+ normalizeUiPlugins,
13
11
  omitKeys,
14
12
  resolveDefaultAgentIdSetting
15
- } from "./chunk-GGKNJ42M.js";
13
+ } from "./chunk-LYDEFPQP.js";
14
+ import {
15
+ DEFAULT_USER_PREFERENCE_PROFILE,
16
+ normalizeEnabledPromptSkills,
17
+ normalizeEnabledSkills
18
+ } from "./chunk-DVYAFH2Q.js";
16
19
  import {
17
20
  require_react
18
- } from "./chunk-5FUN7EG4.js";
21
+ } from "./chunk-RD3QLZQV.js";
19
22
  import {
20
23
  patch,
21
24
  readAndWait,
22
25
  toTimestampMs,
23
26
  upsert,
24
27
  write
25
- } from "./chunk-AVHRSJUH.js";
28
+ } from "./chunk-RM4UMFY4.js";
26
29
  import "./chunk-3PVYUPXK.js";
27
- import "./chunk-C4WTX5TU.js";
28
- import "./chunk-QLFCTYRH.js";
30
+ import "./chunk-A5EVA6HU.js";
31
+ import "./chunk-F3XI6WQP.js";
29
32
  import {
30
33
  getRuntimeServerContext
31
- } from "./chunk-2VUZSVAS.js";
34
+ } from "./chunk-GXXY2NL3.js";
32
35
  import "./chunk-UEILX4EV.js";
33
36
  import {
34
37
  createAction,
35
38
  createAsyncThunk
36
- } from "./chunk-7Z6EW7AH.js";
39
+ } from "./chunk-7TTMMOKH.js";
37
40
  import {
38
41
  fetchFromServer
39
- } from "./chunk-AGP3YSEC.js";
40
- import "./chunk-QQ56R7KS.js";
42
+ } from "./chunk-ULLHVDTZ.js";
43
+ import "./chunk-X7IA2B7R.js";
41
44
  import {
42
45
  getSessionGenerationForState,
46
+ getSessionSnapshotForState,
43
47
  selectIdentityUserId
44
48
  } from "./chunk-PXYBUFDB.js";
49
+ import "./chunk-QQ56R7KS.js";
45
50
  import "./chunk-BV3FLP2L.js";
46
- import "./chunk-EOWLBDY6.js";
51
+ import "./chunk-MM73SP4K.js";
47
52
  import {
48
53
  asRecordOrEmpty
49
54
  } from "./chunk-KX6YBIHG.js";
50
- import "./chunk-OW765XBU.js";
51
55
  import "./chunk-7DPNBQSV.js";
56
+ import "./chunk-OW765XBU.js";
52
57
  import {
53
58
  DEFAULT_SYSTEM_AGENT_CAPABILITIES
54
- } from "./chunk-GNHMRBYZ.js";
59
+ } from "./chunk-EBKHA63G.js";
55
60
  import "./chunk-6OVNSQHN.js";
56
61
  import "./chunk-W6RFEDN4.js";
57
- import "./chunk-KN3HEZIQ.js";
58
- import "./chunk-UJKTI5PG.js";
62
+ import "./chunk-ZVOL2MAJ.js";
63
+ import "./chunk-WRKMXMU7.js";
59
64
  import "./chunk-M2EJHDJP.js";
60
65
  import {
61
66
  createUserKey,
@@ -66,16 +71,16 @@ import {
66
71
  } from "./chunk-OJKUU3LP.js";
67
72
  import "./chunk-YZMNK53S.js";
68
73
  import "./chunk-I42VC5KR.js";
74
+ import "./chunk-U6VC4MU4.js";
69
75
  import "./chunk-KHCLMKZZ.js";
76
+ import "./chunk-LCBAMY2M.js";
70
77
  import "./chunk-3EUW3WEO.js";
71
78
  import "./chunk-KUG52IAP.js";
72
- import "./chunk-QSJ3HFEF.js";
73
- import "./chunk-U6VC4MU4.js";
74
79
  import "./chunk-WWC7I6TA.js";
75
- import "./chunk-LCBAMY2M.js";
76
80
  import "./chunk-G3SUCT4W.js";
77
81
  import "./chunk-4SN6J65J.js";
78
82
  import "./chunk-CF7PE763.js";
83
+ import "./chunk-QSJ3HFEF.js";
79
84
  import {
80
85
  __toESM
81
86
  } from "./chunk-U67V476Y.js";
@@ -208,6 +213,7 @@ var recordSettingsWriteFailure = createAction(
208
213
  var recordServerAuthorityEcho = createAction(
209
214
  "settings/_recordServerAuthorityEcho"
210
215
  );
216
+ var publishUiPlugins = createAction("settings/_publishUiPlugins");
211
217
 
212
218
  // packages/app/settings/accountSettingsWriteQueue.ts
213
219
  var queues = /* @__PURE__ */ new WeakMap();
@@ -227,6 +233,25 @@ function enqueueAccountSettingsWrite(getState, accountId, write2) {
227
233
  return result;
228
234
  }
229
235
 
236
+ // packages/database/retiredSettings.ts
237
+ var RETIRED_SETTINGS_FIELDS = [
238
+ "userTonePreset",
239
+ "knowledgeCaptureLevel",
240
+ "spaceContextLevel",
241
+ "enableReadCurrentSpace",
242
+ "globalPrompt",
243
+ "preferredAnimationSet",
244
+ "createMenuOpenCount"
245
+ ];
246
+ var retired = new Set(RETIRED_SETTINGS_FIELDS);
247
+ function stripRetiredSettingsFields(record) {
248
+ if (!record || typeof record !== "object" || Array.isArray(record)) return record;
249
+ return Object.fromEntries(Object.entries(record).filter(([key]) => {
250
+ const root = key.match(/^(?:([^.[\]]+)|\[(?:"([^"]+)"|'([^']+)'|([^\]]+))\])/);
251
+ return !root || !retired.has(root[1] ?? root[2] ?? root[3] ?? root[4]);
252
+ }));
253
+ }
254
+
230
255
  // packages/app/settings/dbActionThunks.ts
231
256
  var getDefaultSettingDbActionThunks = () => ({
232
257
  readAndWait,
@@ -251,15 +276,18 @@ var withSettingsRecordSchema = (changes) => ({
251
276
 
252
277
  // packages/app/settings/settingPersistence.ts
253
278
  var normalizeSettingChanges = (changes) => {
254
- let normalizedChanges = omitKeys(changes, [
255
- "preferredAnimationSet",
256
- "createMenuOpenCount",
279
+ let normalizedChanges = omitKeys(stripRetiredSettingsFields(changes), [
257
280
  // 本地意图世代只活在 redux 状态里:既不能从服务端 record 写回,也不能写云。
258
281
  "localIntentEpoch",
282
+ // 每个键的本地意图世代同理:纯本地判据,不入云端 record、不被远端回灌。
283
+ "localIntentKeyEpochs",
259
284
  // 权威回显世代同理:纯本地世代标记,不入云端 record、不被远端回灌。
260
285
  "serverAuthorityEchoSeq",
261
286
  // 写失败状态同样是纯本地 observability:绝不进入云端 settings record。
262
287
  "lastWriteFailure",
288
+ // uiPlugins 的归属账号同样只活在本地:不写云端、不被 record 回灌。
289
+ "uiPluginsOwnerAccountId",
290
+ "uiPluginsGeneration",
263
291
  // Retired device appearance is never accepted by Redux, including legacy callers.
264
292
  "themeName",
265
293
  "themeMode",
@@ -323,6 +351,12 @@ var normalizeSettingChanges = (changes) => {
323
351
  )
324
352
  };
325
353
  }
354
+ if (hasOwn(normalizedChanges, "uiPlugins")) {
355
+ normalizedChanges = {
356
+ ...normalizedChanges,
357
+ uiPlugins: normalizeUiPlugins(normalizedChanges.uiPlugins)
358
+ };
359
+ }
326
360
  if (hasOwn(normalizedChanges, "enabledPromptSkills")) {
327
361
  normalizedChanges = {
328
362
  ...normalizedChanges,
@@ -370,12 +404,10 @@ var isLocalFirstAppearanceChange = (changes) => {
370
404
  );
371
405
  };
372
406
  var stripRegisterBackedFieldsFromSettingsWrite = (changes) => {
373
- return omitKeys(changes, [
407
+ return omitKeys(stripRetiredSettingsFields(changes), [
374
408
  "autoApproveCredits",
375
409
  "defaultSpaceId",
376
410
  "userAuthorityRegistry",
377
- "preferredAnimationSet",
378
- "createMenuOpenCount",
379
411
  ...LOCAL_APPEARANCE_KEY_NAMES
380
412
  ]);
381
413
  };
@@ -384,11 +416,13 @@ var sanitizeStoredSettingsRecord = (settingsRecord) => {
384
416
  return null;
385
417
  }
386
418
  const record = settingsRecord;
387
- const sanitizedSettings = omitKeys(record, [
419
+ const sanitizedSettings = omitKeys(stripRetiredSettingsFields(record), [
388
420
  "autoApproveCredits",
389
421
  "defaultSpaceId",
390
422
  "schemaVersion",
391
- "preferredAnimationSet",
423
+ // 归属标记只活在本地;远端 record 里的同名键一律丢弃。
424
+ "uiPluginsOwnerAccountId",
425
+ "uiPluginsGeneration",
392
426
  ...LOCAL_APPEARANCE_KEY_NAMES
393
427
  ]);
394
428
  return Object.keys(sanitizedSettings).length > 0 ? sanitizedSettings : null;
@@ -414,6 +448,10 @@ var hydrateStoredSettings = ({
414
448
  const hydratedSettings = {
415
449
  ...baseSettings,
416
450
  enabledPromptSkills: resolvedEnabledPromptSkills,
451
+ // UI 插件启用状态**无条件**归一化:记录里没有该键(旧记录 / 另一个从未开启过
452
+ // 插件的账号)也必须显式回落到全 absent,否则 Redux 会保留上一个账号的启用
453
+ // 状态——这正是跨账号泄漏的入口。
454
+ uiPlugins: normalizeUiPlugins(record.uiPlugins),
417
455
  ...hasRecordEnabledSkills ? { enabledSkills: normalizeEnabledSkills(record.enabledSkills) } : {},
418
456
  // 服务端独占字段:只读回显(缺失时沿用初始值 0,非法值按 0)
419
457
  ...hasOwn(record, "autoApproveCredits") ? { autoApproveCredits: typeof record.autoApproveCredits === "number" && Number.isFinite(record.autoApproveCredits) && record.autoApproveCredits >= 0 ? record.autoApproveCredits : 0 } : {},
@@ -477,7 +515,7 @@ var getCachedDefaultAgentRegisterRecord = (getState, registerKey) => {
477
515
  if (!record || typeof record !== "object") return null;
478
516
  return record;
479
517
  };
480
- var persistDefaultAgentRegister = async (dispatch, getState, userId, value) => {
518
+ var persistDefaultAgentRegister = async (dispatch, getState, userId, value, canWrite) => {
481
519
  const registerKey = createUserPreferenceKey.defaultAgent(userId);
482
520
  let previousRecord = getCachedDefaultAgentRegisterRecord(getState, registerKey);
483
521
  if (!previousRecord) {
@@ -492,6 +530,7 @@ var persistDefaultAgentRegister = async (dispatch, getState, userId, value) => {
492
530
  if (previousRecord && previousValue === value) {
493
531
  return;
494
532
  }
533
+ if (canWrite && !canWrite()) return;
495
534
  await dispatch(
496
535
  getSettingDbActionThunks().write({
497
536
  customKey: registerKey,
@@ -514,6 +553,13 @@ var readLocalIntentEpoch = (getState) => {
514
553
  const value = getState()?.settings?.localIntentEpoch;
515
554
  return typeof value === "number" && Number.isFinite(value) ? value : 0;
516
555
  };
556
+ var readLocalIntentKeyEpoch = (getState, key) => {
557
+ const epochs = getState()?.settings?.localIntentKeyEpochs;
558
+ if (!epochs || typeof epochs !== "object") return 0;
559
+ const value = epochs[key];
560
+ return typeof value === "number" && Number.isFinite(value) ? value : 0;
561
+ };
562
+ var isLocalIntentSupersededForKeys = (getState, intentEpoch, keys) => keys.some((key) => readLocalIntentKeyEpoch(getState, key) > intentEpoch);
517
563
  var SettingsWriteSupersededError = class extends Error {
518
564
  constructor(message = "Settings write superseded by a newer local intent.") {
519
565
  super(message);
@@ -613,13 +659,15 @@ var describeSettingsWriteFailure = async ({
613
659
  reconciliation: "not-attempted",
614
660
  unresolvedKeys: [...persistedKeys].sort()
615
661
  };
616
- if (readLocalIntentEpoch(getState) !== intentEpoch) return base;
662
+ if (isLocalIntentSupersededForKeys(getState, intentEpoch, intentKeys))
663
+ return base;
617
664
  const remoteRecord = await readSettingsAuthorityRecord(
618
665
  createUserKey.settings(accountId),
619
666
  getState,
620
667
  accountId
621
668
  );
622
- if (readLocalIntentEpoch(getState) !== intentEpoch) return base;
669
+ if (isLocalIntentSupersededForKeys(getState, intentEpoch, intentKeys))
670
+ return base;
623
671
  const serverRecord = sanitizeStoredSettingsRecord(remoteRecord);
624
672
  if (!serverRecord) {
625
673
  return {
@@ -643,22 +691,32 @@ var readServerAuthorityEchoSeq = (getState) => {
643
691
  const value = getState()?.settings?.serverAuthorityEchoSeq;
644
692
  return typeof value === "number" && Number.isFinite(value) ? value : 0;
645
693
  };
694
+ var readUiPluginIntentSnapshot = (getState) => {
695
+ const state = getState()?.settings;
696
+ return {
697
+ value: state?.uiPlugins,
698
+ ownerAccountId: state?.uiPluginsOwnerAccountId ?? null,
699
+ generation: state?.uiPluginsGeneration
700
+ };
701
+ };
702
+ var isSameUiPluginIntent = (a, b) => a.value === b.value && a.ownerAccountId === b.ownerAccountId && a.generation === b.generation;
646
703
  var latestChatHydrations = /* @__PURE__ */ new WeakMap();
647
704
  var getSettings = createAsyncThunk("settings/getSettings", async (_, { dispatch, getState }) => {
648
705
  const userId = selectIdentityUserId(getState());
649
- if (!userId) return null;
706
+ if (!userId || getSessionSnapshotForState(getState()) && getSessionSnapshotForState(getState())?.transition !== "idle") return null;
650
707
  const session = getSessionGenerationForState(getState());
651
708
  const hydration = {};
652
709
  latestChatHydrations.set(getState, hydration);
653
710
  const startLocalIntentEpoch = readLocalIntentEpoch(getState);
654
711
  const startAuthorityEchoSeq = readServerAuthorityEchoSeq(getState);
712
+ const startUiPluginIntent = readUiPluginIntentSnapshot(getState);
655
713
  const settingsKey = createUserKey.settings(userId);
656
714
  const authorityHomeKey = createUserPreferenceKey.authorityHome(userId);
657
715
  const [settingsRecord, authorityHomeRecord] = await Promise.all([
658
716
  dispatch(getSettingDbActionThunks().readAndWait(settingsKey)).unwrap().catch(() => null),
659
717
  dispatch(getSettingDbActionThunks().readAndWait(authorityHomeKey)).unwrap().catch(() => null)
660
718
  ]);
661
- if (selectIdentityUserId(getState()) !== userId || getSessionGenerationForState(getState()) !== session || latestChatHydrations.get(getState) !== hydration) return null;
719
+ if (selectIdentityUserId(getState()) !== userId || getSessionSnapshotForState(getState()) && getSessionSnapshotForState(getState())?.transition !== "idle" || getSessionGenerationForState(getState()) !== session || latestChatHydrations.get(getState) !== hydration) return null;
662
720
  const authorityHomeServer = readUserPreferenceRegisterValue(
663
721
  authorityHomeRecord,
664
722
  USER_PREFERENCE_NAMES.AUTHORITY_HOME
@@ -673,7 +731,7 @@ var getSettings = createAsyncThunk("settings/getSettings", async (_, { dispatch,
673
731
  hydrated
674
732
  );
675
733
  const { currentServer: _ignored, ...settingsToApply } = normalizedPayload;
676
- if (selectIdentityUserId(getState()) !== userId || getSessionGenerationForState(getState()) !== session || latestChatHydrations.get(getState) !== hydration) return null;
734
+ if (selectIdentityUserId(getState()) !== userId || getSessionSnapshotForState(getState()) && getSessionSnapshotForState(getState())?.transition !== "idle" || getSessionGenerationForState(getState()) !== session || latestChatHydrations.get(getState) !== hydration) return null;
677
735
  const intentChanged = readLocalIntentEpoch(getState) !== startLocalIntentEpoch;
678
736
  const echoChanged = readServerAuthorityEchoSeq(getState) !== startAuthorityEchoSeq;
679
737
  const authoritative = pickServerAuthoritativeSettings(hydrated);
@@ -683,7 +741,16 @@ var getSettings = createAsyncThunk("settings/getSettings", async (_, { dispatch,
683
741
  ...preferenceFields
684
742
  } = settingsToApply;
685
743
  const applied = {};
686
- if (!intentChanged) Object.assign(applied, preferenceFields);
744
+ const pluginIntentChanged = !isSameUiPluginIntent(
745
+ startUiPluginIntent,
746
+ readUiPluginIntentSnapshot(getState)
747
+ );
748
+ if (!pluginIntentChanged) {
749
+ dispatch(publishUiPlugins({ value: settingsToApply.uiPlugins, accountId: userId, generation: session }));
750
+ }
751
+ if (!intentChanged) {
752
+ Object.assign(applied, preferenceFields);
753
+ }
687
754
  if (!echoChanged && hasOwn(authoritative, "autoApproveCredits")) {
688
755
  applied.autoApproveCredits = authoritative.autoApproveCredits;
689
756
  }
@@ -709,6 +776,7 @@ var persistSettingsChanges = createAsyncThunk("settings/persistSettingsChanges",
709
776
  const normalizedChanges = normalizeSettingChanges(changes);
710
777
  const previousDefaultAgentId = normalizeDefaultAgentIdSetting(currentSettings.defaultAgentId) ?? SYSTEM_DEFAULT_AGENT_ID;
711
778
  const userId = selectIdentityUserId(getState());
779
+ if (hasOwn(normalizedChanges, "uiPlugins") && getSessionSnapshotForState(getState())?.transition !== "idle") throw new Error("Session is transitioning.");
712
780
  if (!userId) {
713
781
  const hasAppearanceChanges = Object.keys(normalizedChanges).length > 0;
714
782
  if (hasAppearanceChanges) {
@@ -718,7 +786,7 @@ var persistSettingsChanges = createAsyncThunk("settings/persistSettingsChanges",
718
786
  } else {
719
787
  throw new Error("User not found for persisting settings.");
720
788
  }
721
- dispatch(bumpLocalIntentEpoch());
789
+ dispatch(bumpLocalIntentEpoch({ keys: Object.keys(normalizedChanges) }));
722
790
  dispatch(updateSettingsState(normalizedChanges));
723
791
  return normalizedChanges;
724
792
  }
@@ -730,49 +798,75 @@ var persistSettingsChanges = createAsyncThunk("settings/persistSettingsChanges",
730
798
  });
731
799
  if (selectIdentityUserId(getState()) !== userId) return {};
732
800
  const owner = getAccountChatDisplayOwner(getState);
733
- dispatch(bumpLocalIntentEpoch());
801
+ const intentKeys = Object.keys(normalizedChanges);
802
+ dispatch(bumpLocalIntentEpoch({ keys: intentKeys }));
734
803
  const intentEpoch = readLocalIntentEpoch(getState);
735
804
  owner.setAccount(userId);
736
805
  owner.updateForAccount(userId, pickAccountChatDisplayPreferences(persistencePlan.normalizedChanges));
806
+ if (hasOwn(persistencePlan.normalizedChanges, "uiPlugins")) {
807
+ dispatch(publishUiPlugins({ value: persistencePlan.normalizedChanges.uiPlugins, accountId: userId, generation: session }));
808
+ }
737
809
  dispatch(updateSettingsState(omitAccountChatDisplayPreferences(persistencePlan.normalizedChanges)));
738
- const intentKeys = Object.keys(persistencePlan.normalizedChanges);
739
- const persistedKeys = Object.keys(
740
- persistencePlan.settingsPatch?.changes ?? {}
741
- ).filter((key) => key !== "schemaVersion");
742
- const isCurrentIntent = () => selectIdentityUserId(getState()) === userId && getSessionGenerationForState(getState()) === session && readLocalIntentEpoch(getState) === intentEpoch;
810
+ const isSameAccountSession = () => (!getSessionSnapshotForState(getState()) || getSessionSnapshotForState(getState())?.transition === "idle") && selectIdentityUserId(getState()) === userId && getSessionGenerationForState(getState()) === session;
811
+ const isSupersededKey = (key) => readLocalIntentKeyEpoch(getState, key) > intentEpoch;
812
+ const resolveEffectiveWrite = () => {
813
+ const patchChanges = persistencePlan.settingsPatch?.changes ?? {};
814
+ const effectiveChanges = {};
815
+ for (const [key, value] of Object.entries(patchChanges)) {
816
+ if (!isSupersededKey(key)) effectiveChanges[key] = value;
817
+ }
818
+ const effectiveIntentKeys = intentKeys.filter((key) => !isSupersededKey(key));
819
+ const effectivePersistedKeys = Object.keys(effectiveChanges).filter(
820
+ (key) => key !== "schemaVersion"
821
+ );
822
+ return { effectiveChanges, effectiveIntentKeys, effectivePersistedKeys };
823
+ };
743
824
  const performWrite = async () => {
744
- if (!isCurrentIntent()) {
825
+ if (!isSameAccountSession()) {
826
+ throw new SettingsWriteSupersededError();
827
+ }
828
+ const effective = resolveEffectiveWrite();
829
+ if (effective.effectiveIntentKeys.length === 0) {
745
830
  throw new SettingsWriteSupersededError();
746
831
  }
747
832
  const nextDefaultAgentId = normalizeDefaultAgentIdSetting(
748
833
  persistencePlan.normalizedChanges.defaultAgentId
749
834
  ) ?? null;
750
- if (hasOwn(changes, "defaultAgentId") && previousDefaultAgentId !== (nextDefaultAgentId ?? SYSTEM_DEFAULT_AGENT_ID)) {
835
+ if (hasOwn(changes, "defaultAgentId") && previousDefaultAgentId !== (nextDefaultAgentId ?? SYSTEM_DEFAULT_AGENT_ID) && !isSupersededKey("defaultAgentId")) {
751
836
  await persistDefaultAgentRegister(
752
837
  dispatch,
753
838
  getState,
754
839
  userId,
755
- nextDefaultAgentId
840
+ nextDefaultAgentId,
841
+ () => isSameAccountSession() && !isSupersededKey("defaultAgentId")
756
842
  );
757
843
  }
758
- if (persistencePlan.settingsPatch) {
844
+ if (!isSameAccountSession()) {
845
+ throw new SettingsWriteSupersededError();
846
+ }
847
+ const effectiveAfterAwait = resolveEffectiveWrite();
848
+ if (effectiveAfterAwait.effectiveIntentKeys.length === 0) {
849
+ throw new SettingsWriteSupersededError();
850
+ }
851
+ if (persistencePlan.settingsPatch && Object.keys(effectiveAfterAwait.effectiveChanges).length > 0) {
759
852
  await dispatch(
760
853
  getSettingDbActionThunks().upsert({
761
854
  dbKey: persistencePlan.settingsPatch.dbKey,
762
- data: persistencePlan.settingsPatch.changes
855
+ data: effectiveAfterAwait.effectiveChanges
763
856
  })
764
857
  ).unwrap();
765
858
  }
859
+ return effectiveAfterAwait;
766
860
  };
767
- const settleSettingsWriteFailureAfterSuccess = () => {
768
- if (!isCurrentIntent()) return;
861
+ const settleSettingsWriteFailureAfterSuccess = (effective) => {
862
+ if (!isSameAccountSession()) return;
769
863
  const existing = getState()?.settings?.lastWriteFailure;
770
864
  if (!existing) return;
771
865
  const next = resolveSettingsWriteFailureAfterSuccess({
772
866
  failure: existing,
773
867
  accountId: userId,
774
- intentKeys,
775
- persistedKeys
868
+ intentKeys: effective.effectiveIntentKeys,
869
+ persistedKeys: effective.effectivePersistedKeys
776
870
  });
777
871
  if (next === existing) return;
778
872
  dispatch(recordSettingsWriteFailure(next));
@@ -780,32 +874,46 @@ var persistSettingsChanges = createAsyncThunk("settings/persistSettingsChanges",
780
874
  await enqueueAccountSettingsWrite(getState, userId, async () => {
781
875
  let firstFailureAt = 0;
782
876
  try {
783
- await performWrite();
784
- settleSettingsWriteFailureAfterSuccess();
877
+ const effective = await performWrite();
878
+ settleSettingsWriteFailureAfterSuccess(effective);
785
879
  return;
786
880
  } catch (firstError) {
787
881
  if (isSettingsWriteSupersededError(firstError)) return;
788
882
  firstFailureAt = Date.now();
789
- if (!isCurrentIntent()) return;
883
+ if (!isSameAccountSession()) return;
790
884
  await delaySettingsWriteRetry(SETTINGS_WRITE_RETRY_BACKOFF_MS);
791
- if (!isCurrentIntent()) return;
792
885
  try {
793
- await performWrite();
794
- settleSettingsWriteFailureAfterSuccess();
886
+ const effective = await performWrite();
887
+ settleSettingsWriteFailureAfterSuccess(effective);
795
888
  return;
796
889
  } catch (retryError) {
797
890
  if (isSettingsWriteSupersededError(retryError)) return;
798
- if (!isCurrentIntent()) return;
891
+ if (!isSameAccountSession()) return;
892
+ const effective = resolveEffectiveWrite();
893
+ if (effective.effectiveIntentKeys.length === 0) return;
799
894
  const failure = await describeSettingsWriteFailure({
800
895
  getState,
801
896
  accountId: userId,
802
897
  intentEpoch,
803
- intentKeys,
804
- persistedKeys,
898
+ intentKeys: effective.effectiveIntentKeys,
899
+ persistedKeys: effective.effectivePersistedKeys,
805
900
  at: firstFailureAt
806
901
  });
807
- if (!isCurrentIntent()) return;
808
- dispatch(recordSettingsWriteFailure(failure));
902
+ if (!isSameAccountSession()) return;
903
+ const ownedAfterReconcile = new Set(
904
+ resolveEffectiveWrite().effectiveIntentKeys
905
+ );
906
+ const ownedKeys = failure.keys.filter((key) => ownedAfterReconcile.has(key));
907
+ if (ownedKeys.length === 0) return;
908
+ dispatch(
909
+ recordSettingsWriteFailure({
910
+ ...failure,
911
+ keys: ownedKeys,
912
+ unresolvedKeys: failure.unresolvedKeys.filter(
913
+ (key) => ownedAfterReconcile.has(key)
914
+ )
915
+ })
916
+ );
809
917
  throw retryError;
810
918
  }
811
919
  }
@@ -942,6 +1050,16 @@ var setDefaultAgentId = createAsyncThunk(
942
1050
  })
943
1051
  ).unwrap()
944
1052
  );
1053
+ var setUiPluginState = createAsyncThunk(
1054
+ "settings/setUiPluginState",
1055
+ async ({ id, value, session }, { dispatch, getState }) => {
1056
+ const current = getSessionSnapshotForState(getState());
1057
+ if (!session || session.transition !== "idle" || current?.transition !== "idle" || current.activeAccountId !== session.activeAccountId || current.sessionGeneration !== session.sessionGeneration) throw new Error("Session changed; reopen plugin configuration.");
1058
+ const state = getState().settings;
1059
+ if (state.uiPluginsOwnerAccountId !== current.activeAccountId || state.uiPluginsGeneration !== current.sessionGeneration) throw new Error("Plugin settings are not hydrated for this session.");
1060
+ await dispatch(setSettings({ uiPlugins: { ...state.uiPlugins, [id]: value } })).unwrap();
1061
+ }
1062
+ );
945
1063
  export {
946
1064
  getSettings,
947
1065
  setAccountChatDisplayPreferences,
@@ -959,6 +1077,7 @@ export {
959
1077
  setSettings,
960
1078
  setSidebarWidth,
961
1079
  setSpaceContextLevel,
1080
+ setUiPluginState,
962
1081
  setUserTonePreset,
963
1082
  toggleEditorAutoSave,
964
1083
  toggleEditorShortcut,
@@ -9,9 +9,10 @@ import {
9
9
  listLocalWorkspaceSkillCatalogEntries,
10
10
  parseSkillFrontmatter,
11
11
  resolveSkillByName
12
- } from "./chunk-CKT6QUE2.js";
13
- import "./chunk-JWXITTQB.js";
14
- import "./chunk-L5I543VB.js";
12
+ } from "./chunk-UHW6SCVK.js";
13
+ import "./chunk-5HUO7SEX.js";
14
+ import "./chunk-YGDYYFRX.js";
15
+ import "./chunk-2SXN7LAY.js";
15
16
  import "./chunk-KHCLMKZZ.js";
16
17
  import "./chunk-U67V476Y.js";
17
18
  export {