nolo-cli 0.225.0-alpha.1 → 0.225.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 (245) hide show
  1. package/{_executeModel-L5VHAXSU.js → _executeModel-UCWDB72C.js} +79 -73
  2. package/{action-CK64LS6S.js → action-24MZYW2B.js} +11 -8
  3. package/{addContentAction-EQXMFNPR.js → addContentAction-HEMCSSHT.js} +14 -13
  4. package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-SQYDOXHA.js} +15 -14
  5. package/{agentDeleteCommand-4WC7INCX.js → agentDeleteCommand-P7O3ACNJ.js} +131 -124
  6. package/{agentEmailCommands-3XFR6WY7.js → agentEmailCommands-A5BRSYWK.js} +134 -123
  7. package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
  8. package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
  9. package/{agentListCommands-BBCP5XYW.js → agentListCommands-LDRCOOMO.js} +112 -496
  10. package/{agentMachineCommands-YZDCOLQL.js → agentMachineCommands-AYL53KJV.js} +65 -58
  11. package/{agentProviderCommands-7BSJH7TO.js → agentProviderCommands-N5EA3ED2.js} +6 -6
  12. package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-QQQZSC6S.js} +6 -6
  13. package/agentRecordCommands-FICBZ57C.js +188 -0
  14. package/{agentRunCommand-NHYBV4G5.js → agentRunCommand-CTXQGDUM.js} +135 -120
  15. package/{agentRunControl-7A2FOXIJ.js → agentRunControl-CO6BASZF.js} +20 -14
  16. package/{agentRuntimeLocal-GSTYFEX4.js → agentRuntimeLocal-5YN4D5WT.js} +48 -41
  17. package/{agentSlice-O6IGTM3Y.js → agentSlice-DJ5D4DU4.js} +18 -17
  18. package/{appDeleteCommands-L7HL4AWF.js → appDeleteCommands-B4E7N7M2.js} +58 -51
  19. package/{appDeployCommands-SGSUNFZR.js → appDeployCommands-E4DTXRRM.js} +58 -51
  20. package/{appDeployStatusCommands-AAA3XD54.js → appDeployStatusCommands-FCNHYHZM.js} +58 -51
  21. package/{appGetCommands-LN72GAOA.js → appGetCommands-4DXSQHUZ.js} +58 -51
  22. package/{appListCommands-IJQQ3VND.js → appListCommands-2NN5E4F6.js} +58 -51
  23. package/{authCommand-7JXW54U4.js → authCommand-47DR6GZT.js} +33 -28
  24. package/{authCommands-YDNAIDEY.js → authCommands-ZZ3L5IFM.js} +16 -11
  25. package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-AYWYQVA4.js} +5 -5
  26. package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-VZWAY2KR.js} +6 -6
  27. package/{chunk-YDBMZ7FV.js → chunk-24GVXSWK.js} +3 -3
  28. package/{chunk-JCK3EFZS.js → chunk-25OCZXSX.js} +63 -32
  29. package/{chunk-P2ZLUIW2.js → chunk-2BSLGODA.js} +350 -25
  30. package/chunk-2SXN7LAY.js +15 -0
  31. package/{chunk-N5PQJKCY.js → chunk-2XMKW2OY.js} +13 -12
  32. package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
  33. package/{chunk-UKS7D2NL.js → chunk-3NFWMSTA.js} +111 -26
  34. package/{chunk-TZEP5J4A.js → chunk-3V6JT6WN.js} +2935 -1412
  35. package/{chunk-SBVTHMEG.js → chunk-4FE3IWRE.js} +1 -1
  36. package/{chunk-4JVNURX4.js → chunk-4YFC3DWW.js} +68 -16
  37. package/chunk-4ZCTKB27.js +31 -0
  38. package/chunk-53W5BXLN.js +340 -0
  39. package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
  40. package/{chunk-VFBVA3U2.js → chunk-5TJE4QCL.js} +131 -40
  41. package/{chunk-YXMBJ7UH.js → chunk-6BGJHJRN.js} +21 -21
  42. package/chunk-6D25V6CB.js +133 -0
  43. package/chunk-6RSNVJGO.js +279 -0
  44. package/{chunk-IZIN2UNJ.js → chunk-6X3CS6NJ.js} +203 -24
  45. package/{chunk-XZGQ6ZCV.js → chunk-6XBOPKUH.js} +27 -90
  46. package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
  47. package/{chunk-62HXNQVV.js → chunk-776CXKMX.js} +1 -1
  48. package/chunk-7NIBQ4HY.js +138 -0
  49. package/{chunk-7Z6EW7AH.js → chunk-7OTNBI77.js} +13 -6
  50. package/{chunk-HOK3ILHA.js → chunk-7Q7MKJZN.js} +590 -330
  51. package/{chunk-KZU52OJ5.js → chunk-7U2TFUWW.js} +6 -6
  52. package/{chunk-IUD7YR3B.js → chunk-B72AFRR2.js} +15 -15
  53. package/{chunk-4HFTBHBF.js → chunk-BDERPCJW.js} +8 -8
  54. package/chunk-BEM6LPD2.js +734 -0
  55. package/chunk-BIDSIRTS.js +307 -0
  56. package/{chunk-6J4TTPS2.js → chunk-BIJTI5SX.js} +5 -5
  57. package/chunk-BWW6WRX6.js +1438 -0
  58. package/{chunk-AGP3YSEC.js → chunk-C3GOEQJF.js} +46 -1
  59. package/chunk-C5A54QS7.js +108 -0
  60. package/{chunk-MOMR7NMG.js → chunk-C646JEUV.js} +2 -2
  61. package/{chunk-YI5CDUJD.js → chunk-CT6GT2BG.js} +9 -9
  62. package/{chunk-PVZY6P3S.js → chunk-CZLSTOVM.js} +2 -2
  63. package/{chunk-LJSNEV7M.js → chunk-DGUUOHBF.js} +8 -8
  64. package/{chunk-C4WTX5TU.js → chunk-DIBQXNGW.js} +2 -2
  65. package/{chunk-YFLVRVYK.js → chunk-DLT2DN4M.js} +1 -1
  66. package/{chunk-K44HIUBX.js → chunk-DLTMAXLF.js} +13 -13
  67. package/chunk-DVYAFH2Q.js +103 -0
  68. package/{chunk-SOG7OEXX.js → chunk-DWWUVRB5.js} +1 -1
  69. package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
  70. package/{chunk-GNHMRBYZ.js → chunk-EBKHA63G.js} +106 -14
  71. package/{chunk-KC4SCKXO.js → chunk-EIFSCI4C.js} +990 -1370
  72. package/{chunk-F3YK7KIU.js → chunk-EW37CXCQ.js} +4 -4
  73. package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
  74. package/{chunk-2VUZSVAS.js → chunk-F3FQPVHE.js} +57 -20
  75. package/{chunk-ZRAARRA3.js → chunk-FCAMGBLY.js} +1399 -2978
  76. package/{chunk-AK5O76CC.js → chunk-FPMPWNVQ.js} +3 -3
  77. package/{chunk-WQEMD4Z4.js → chunk-FSIEHQNH.js} +420 -120
  78. package/{chunk-FNDSBM4J.js → chunk-FXX6VFMV.js} +571 -348
  79. package/{chunk-7XS4W5KP.js → chunk-G6OPRPXH.js} +128 -149
  80. package/{chunk-PMDVQBGA.js → chunk-GAHJLSDO.js} +14 -7
  81. package/{chunk-2TIQO6TC.js → chunk-GCVFX6ZL.js} +206 -308
  82. package/{chunk-P25E3CKY.js → chunk-H6CHPU6M.js} +4 -4
  83. package/chunk-HNWZJI4N.js +33394 -0
  84. package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
  85. package/{chunk-KNIIRXHF.js → chunk-IPRPYKBP.js} +46 -8
  86. package/{chunk-C4VAR65S.js → chunk-IUXBKS5L.js} +200 -120
  87. package/{chunk-JVRQ6YVK.js → chunk-JBWXPACD.js} +1 -1
  88. package/{chunk-Z6USB65D.js → chunk-KGIIZXPL.js} +347 -14
  89. package/chunk-KK3FCYZM.js +647 -0
  90. package/{chunk-GBZ4YKEO.js → chunk-KOIDLCAQ.js} +8 -8
  91. package/{chunk-2ZKFCIJJ.js → chunk-LCQJH7KN.js} +1 -1
  92. package/{chunk-N5Z2V73W.js → chunk-LELADM5Q.js} +1 -1
  93. package/{chunk-4NA3YTBC.js → chunk-LMFMV5UC.js} +8 -8
  94. package/{chunk-XN23AUVU.js → chunk-LMZRXDWG.js} +8 -5
  95. package/{chunk-EWPDMS4N.js → chunk-LN4ZVSO7.js} +30 -15
  96. package/{chunk-GOAPXKQU.js → chunk-LT3DMEIB.js} +4 -4
  97. package/{chunk-GGKNJ42M.js → chunk-LYDEFPQP.js} +18 -108
  98. package/{chunk-FTQWYWUI.js → chunk-MDVP5TLI.js} +1 -1
  99. package/{chunk-EOWLBDY6.js → chunk-MM73SP4K.js} +1 -1
  100. package/chunk-MVOZ22RZ.js +26 -0
  101. package/{chunk-3QFLXA24.js → chunk-N6EN3HK3.js} +3 -3
  102. package/{chunk-D726I5AZ.js → chunk-NBB2EBQD.js} +2 -2
  103. package/{chunk-DISQCYPE.js → chunk-NL7J2J5Z.js} +6 -6
  104. package/{chunk-JM5C4EUA.js → chunk-NQQL2DKF.js} +6 -6
  105. package/{chunk-LS2MGTUS.js → chunk-NWWQY2J5.js} +15 -15
  106. package/{chunk-TXGQ4O5S.js → chunk-OATIWAKN.js} +20 -174
  107. package/{chunk-KYH7XW3K.js → chunk-OJRTTERA.js} +77 -2
  108. package/{chunk-VV7TXWOC.js → chunk-OYHJ4TW7.js} +6 -6
  109. package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
  110. package/{chunk-2VA6TU4I.js → chunk-QES2NCVM.js} +17 -14
  111. package/{chunk-WG2LFJYB.js → chunk-QGMIUVBT.js} +39 -30
  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-AMEOV5VZ.js → chunk-S25VJYXV.js} +41 -35
  116. package/chunk-SR4FE5VD.js +9 -0
  117. package/{chunk-4WVJLODK.js → chunk-T23G6PXQ.js} +8 -3
  118. package/{chunk-GVGOEMNV.js → chunk-T444ENEC.js} +3 -3
  119. package/{chunk-67BE44IS.js → chunk-TE2XH4KH.js} +1 -1
  120. package/{chunk-5RKUPJYL.js → chunk-TFGGNRT6.js} +11 -3
  121. package/{chunk-ZH6MUQEO.js → chunk-TTEBPPUV.js} +1 -1
  122. package/{chunk-QVBXJNZ2.js → chunk-TUSTONB3.js} +1 -1
  123. package/{chunk-AVHRSJUH.js → chunk-TXFYIWAW.js} +32 -25
  124. package/{chunk-KOXKKHFE.js → chunk-TXQVH72L.js} +9 -4
  125. package/{chunk-OBSEKCVK.js → chunk-U4VSBDO5.js} +88 -0
  126. package/{chunk-PPJYZRSQ.js → chunk-U5LOKQ2R.js} +30 -14
  127. package/{chunk-KDAGMRDA.js → chunk-UAHUJ4HH.js} +100 -32
  128. package/{chunk-BGGHA5DV.js → chunk-UAOFSUG7.js} +1 -1
  129. package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
  130. package/chunk-UKSKCDBG.js +62 -0
  131. package/{chunk-KEN3N2TN.js → chunk-VMJVAJ6W.js} +13 -10
  132. package/{chunk-SOF4OWDM.js → chunk-VS276URX.js} +0 -2
  133. package/chunk-WDWZPASX.js +29 -0
  134. package/chunk-WFGNWWJI.js +326 -0
  135. package/{chunk-UYOICCYG.js → chunk-WHO3LYDW.js} +64 -89
  136. package/{chunk-UJKTI5PG.js → chunk-WRKMXMU7.js} +2 -1
  137. package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
  138. package/{chunk-QLFCTYRH.js → chunk-X37RQEA3.js} +17 -10
  139. package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
  140. package/chunk-X7IA2B7R.js +166 -0
  141. package/{chunk-GIABSSWQ.js → chunk-XAFOLWLU.js} +4 -4
  142. package/{chunk-45LZIYXB.js → chunk-XNEDFWT4.js} +2 -2
  143. package/{chunk-EOJZGQAE.js → chunk-Y5RN44VH.js} +103 -100
  144. package/{chunk-OB6DVWPF.js → chunk-YFRJAE3R.js} +319 -95
  145. package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
  146. package/{chunk-3KNEE64G.js → chunk-YMCSR7PA.js} +14 -14
  147. package/chunk-YUZ2DAIH.js +34 -0
  148. package/chunk-Z6YTCDU4.js +24 -0
  149. package/{chunk-XQBIZRGW.js → chunk-ZBQ5UGYY.js} +3 -3
  150. package/{chunk-VREDDN25.js → chunk-ZQUCJBS4.js} +14 -9
  151. package/{chunk-UEKXWO7A.js → chunk-ZT3DYK5T.js} +15 -4
  152. package/{chunk-LM2PS3YS.js → chunk-ZTLTDUV6.js} +24 -11
  153. package/{chunk-KN3HEZIQ.js → chunk-ZVOL2MAJ.js} +1 -1
  154. package/{cliAgentConfigHelpers-KICKKNYQ.js → cliAgentConfigHelpers-RFR7ZCSK.js} +12 -12
  155. package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
  156. package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
  157. package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
  158. package/{cliLocalAgentRecordReader-6FXGFBI3.js → cliLocalAgentRecordReader-AJ4UKHKT.js} +51 -45
  159. package/{commandRegistry-HJDPQSQ4.js → commandRegistry-IHWZVV4G.js} +98 -94
  160. package/{contentThunks-I6OR5ENG.js → contentThunks-YQRCBDKF.js} +38 -35
  161. package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-W67DE765.js} +4 -4
  162. package/{createAgentAutomationAction-7BCCTWO5.js → createAgentAutomationAction-ERSDNR4R.js} +38 -35
  163. package/{createDialogAction-CU27KSCJ.js → createDialogAction-QXC7JZPE.js} +39 -37
  164. package/{createPageAction-CWRTEYVA.js → createPageAction-RLZ7776F.js} +40 -37
  165. package/{db-CS4ZJQKV.js → db-6NRZLEW2.js} +10 -7
  166. package/{dbSlice-ZJPDIFER.js → dbSlice-7M2ESEUO.js} +13 -12
  167. package/{deleteFile-Q3YDB4ML.js → deleteFile-WO6WSSNK.js} +10 -7
  168. package/{dialogCommands-OPTRZWTE.js → dialogCommands-UIRO4QNN.js} +62 -56
  169. package/dialogMessageRecord-OAV77LT7.js +7 -0
  170. package/{dialogNotifyCommand-77B57PL6.js → dialogNotifyCommand-VDUFYBZV.js} +14 -14
  171. package/{dialogSlice-XODSLDHY.js → dialogSlice-A4U3C76D.js} +36 -33
  172. package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-SEC6UZWM.js} +3 -3
  173. package/{docCreateCommands-36WS33BK.js → docCreateCommands-MHPYTJWR.js} +56 -49
  174. package/{docDeleteCommands-C4CS4XLF.js → docDeleteCommands-VYULMBAQ.js} +58 -51
  175. package/{docReadCommands-QZMSFMPN.js → docReadCommands-FV3GGZ7V.js} +56 -49
  176. package/{docStore-TVN4SNVE.js → docStore-AWWI72FA.js} +15 -14
  177. package/{docUpdateCommands-BYI64HVV.js → docUpdateCommands-JNS3HX7F.js} +56 -49
  178. package/fetchMessages-TQEUZD7H.js +2 -2
  179. package/{getPricing-VNGFM4PN.js → getPricing-U5AR7ZHS.js} +5 -5
  180. package/{handleSendMessageAction-NSEMVHWX.js → handleSendMessageAction-WDJOUDNV.js} +68 -63
  181. package/{hostCredentialCreate-WBZY7DZB.js → hostCredentialCreate-H3FF2SAO.js} +123 -111
  182. package/index.js +56 -18
  183. package/keys-RWF7UCB4.js +2 -2
  184. package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
  185. package/{localDialogRead-SVTPA5GY.js → localDialogRead-3T2KMCRC.js} +1 -1
  186. package/{localRuntimeAdapter-OAIWERFA.js → localRuntimeAdapter-JAQQXZJP.js} +126 -113
  187. package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-7DKIT7UH.js} +4 -2
  188. package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-5WZ4RJJO.js} +1 -1
  189. package/{machineCommands-OI37ZUQ4.js → machineCommands-WYOFNB5I.js} +146 -120
  190. package/{machineWsRunDispatch-73HKPV6D.js → machineWsRunDispatch-Y7UIAZNM.js} +118 -107
  191. package/markdownToSlate-KIYM7B3P.js +8 -0
  192. package/mcpLocalAuthorizeCommand-SCYEFLRK.js +106 -0
  193. package/{memberThunks-JRYNONYV.js → memberThunks-DIITWU4M.js} +22 -17
  194. package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
  195. package/{models-H5NNZRLH.js → models-CINY5UZR.js} +2 -2
  196. package/{overlay-THLKYIWY.js → overlay-JA3SPVUS.js} +7 -3
  197. package/package.json +1 -1
  198. package/{projectArchive-GVEARCOG.js → projectArchive-IZJXBW5N.js} +43 -40
  199. package/{providerPresetApply-J3WMRPD2.js → providerPresetApply-2QWXPJXZ.js} +6 -6
  200. package/{providerRegistry-KJGB5XWS.js → providerRegistry-W4LCKK6V.js} +6 -6
  201. package/{read-Q7GOHGNP.js → read-OBLJNMA2.js} +9 -8
  202. package/{readDocTool-Z5OQ6422.js → readDocTool-QQZ4DAER.js} +1 -1
  203. package/{readlineWorkspace-5DWUGNSU.js → readlineWorkspace-WF3SWZGR.js} +7055 -5248
  204. package/rememberExplicit-CPAPONSI.js +15 -0
  205. package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-HC3SOY3G.js} +17 -16
  206. package/{runAgentClientLoop-RDXIPF34.js → runAgentClientLoop-Z7V6TA3O.js} +97 -72
  207. package/{runtimeDoctorCommands-UXKXYBW6.js → runtimeDoctorCommands-KX6YLPWV.js} +17 -17
  208. package/{secretCommands-LJXOOYA7.js → secretCommands-STRAX275.js} +4 -4
  209. package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-DDZUQPY6.js} +16 -15
  210. package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-EB67OMAJ.js} +17 -16
  211. package/{settingThunks-AXTBX3Q5.js → settingThunks-TN6GFASU.js} +181 -62
  212. package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
  213. package/{spaceCommands-GUKMDRWN.js → spaceCommands-HBYQUVJI.js} +61 -54
  214. package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
  215. package/{streamAgentChatTurn-XEYQZPDJ.js → streamAgentChatTurn-CM7QQXOS.js} +178 -173
  216. package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-XY5TKQQE.js} +15 -14
  217. package/{tableCommands-HITDSLHS.js → tableCommands-MXFL3JIT.js} +13 -10
  218. package/{toolApiClient-OGQEBQVX.js → toolApiClient-53YMJ2G6.js} +8 -6
  219. package/{tools-6DFTHCFX.js → tools-AT6H73LD.js} +66 -62
  220. package/tuiRestart-272SAYSK.js +41 -0
  221. package/{tuiSummaryLlmCaller-7WLUKNP2.js → tuiSummaryLlmCaller-K2OVRVHG.js} +20 -19
  222. package/{updateCommands-RJVCRSBP.js → updateCommands-O3BOVVVN.js} +8 -6
  223. package/{updateDialogTitleAction-AMSBV2H7.js → updateDialogTitleAction-PGY4UPLH.js} +38 -35
  224. package/{usageCommand-YPJ2ZI2F.js → usageCommand-SCF3ROV2.js} +4 -4
  225. package/{usageRebuildCommand-FERQO74C.js → usageRebuildCommand-K5WPIBA5.js} +5 -5
  226. package/webapi-24RZDIIQ.js +2488 -0
  227. package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-WJDUZLEO.js} +2 -2
  228. package/workContext-Y3ADAPZU.js +14 -0
  229. package/workContextAccess-UZHDLBUR.js +11 -0
  230. package/workContextWriteNotice-YCSSMHN4.js +7 -0
  231. package/agentRecordCommands-KLYKI4Z7.js +0 -177
  232. package/chunk-2THCNKE4.js +0 -147
  233. package/chunk-2WZXXAQD.js +0 -57
  234. package/chunk-5ZMIIR23.js +0 -265
  235. package/chunk-652XYZGP.js +0 -352
  236. package/chunk-BJF2MHJ3.js +0 -118
  237. package/chunk-KEPOVMF4.js +0 -91
  238. package/chunk-QZI44GWV.js +0 -776
  239. package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
  240. package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
  241. package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
  242. package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
  243. package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
  244. package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
  245. package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-HFJIN5IZ.js} +8 -8
@@ -7,13 +7,16 @@ import {
7
7
  scheduleExistingRecordReplication,
8
8
  shouldReplaceLocalWithRemoteRecord,
9
9
  shouldReplicateLocalRecord
10
- } from "./chunk-2VUZSVAS.js";
10
+ } from "./chunk-F3FQPVHE.js";
11
11
  import {
12
12
  fetchFromClientDb,
13
13
  fetchFromServer,
14
+ googleSessionRequestToken,
15
+ googleSessionServer,
14
16
  isReadTimeoutError,
15
- logger
16
- } from "./chunk-AGP3YSEC.js";
17
+ logger,
18
+ scopeGoogleSessionServers
19
+ } from "./chunk-C3GOEQJF.js";
17
20
  import {
18
21
  shouldReplaceWithNextRecord
19
22
  } from "./chunk-BV3FLP2L.js";
@@ -21,8 +24,9 @@ import {
21
24
  isAbortError
22
25
  } from "./chunk-7DPNBQSV.js";
23
26
  import {
24
- isBuiltinPlatformAgentKey
25
- } from "./chunk-UJKTI5PG.js";
27
+ isBuiltinPlatformAgentKey,
28
+ isPublicBuiltinPlatformAgentKey
29
+ } from "./chunk-WRKMXMU7.js";
26
30
  import {
27
31
  NOLO_CLUSTER_SERVERS,
28
32
  normalizeKnownServerOrigin
@@ -247,6 +251,7 @@ var readAction = async (payload, thunkApi) => {
247
251
  userAuthorityRegistry
248
252
  } = getRuntimeServerContext(state, preferredServerOrigin);
249
253
  const allServers = resolveAgentReadServers({ dbKey, configuredServers });
254
+ const fetchScopedFromServer = (server, key, token, signal2) => fetchFromServer(server, key, googleSessionRequestToken(token, server, isPublicBuiltinPlatformAgentKey(key)), signal2);
250
255
  const isLoggedIn = !!currentToken;
251
256
  const now = Date.now();
252
257
  const localData = await fetchFromClientDb(clientDb, dbKey);
@@ -265,14 +270,15 @@ var readAction = async (payload, thunkApi) => {
265
270
  currentServer,
266
271
  userAuthorityRegistry
267
272
  });
268
- const authorityPlannedServers = planAuthorityReadServers({
273
+ let authorityPlannedServers = planAuthorityReadServers({
269
274
  allServers,
270
275
  authorityServer: preferredServerOrigin ?? authority.authorityServer,
271
276
  serverOrigin: authority.serverOrigin
272
277
  });
278
+ if (!isPublicBuiltinPlatformAgentKey(dbKey)) authorityPlannedServers = scopeGoogleSessionServers(currentToken, currentServer, authorityPlannedServers);
273
279
  let { preferredServer, fallbackServers, orderedServersForLocalHit } = partitionReadServers({
274
280
  allServers: authorityPlannedServers,
275
- preferredServerOrigin: preferredServerOrigin ?? authority.authorityServer
281
+ preferredServerOrigin: googleSessionServer(currentToken, currentServer) ?? preferredServerOrigin ?? authority.authorityServer
276
282
  });
277
283
  readRequestManager.cleanupMisses(now);
278
284
  readRequestManager.cleanupLocalHitRevalidations(now);
@@ -321,7 +327,7 @@ var readAction = async (payload, thunkApi) => {
321
327
  if (retryInMs === null) {
322
328
  readRequestManager.markLocalHitRevalidated(dbKey, now);
323
329
  const remotePromises2 = orderedServersForLocalHit.map(
324
- (server) => fetchFromServer(
330
+ (server) => fetchScopedFromServer(
325
331
  server,
326
332
  dbKey,
327
333
  isLoggedIn ? currentToken : void 0,
@@ -353,12 +359,13 @@ var readAction = async (payload, thunkApi) => {
353
359
  return normalizeReadRecord(dbKey, localData);
354
360
  }
355
361
  if (authoritativeServerOrigin) {
362
+ googleSessionRequestToken(currentToken, authoritativeServerOrigin, isPublicBuiltinPlatformAgentKey(dbKey));
356
363
  preferredServer = authoritativeServerOrigin;
357
364
  fallbackServers = [];
358
365
  }
359
366
  if (preferredServer) {
360
367
  try {
361
- const preferredRemoteData = await fetchFromServer(
368
+ const preferredRemoteData = await fetchScopedFromServer(
362
369
  preferredServer,
363
370
  dbKey,
364
371
  isLoggedIn ? currentToken : void 0,
@@ -402,7 +409,7 @@ var readAction = async (payload, thunkApi) => {
402
409
  }
403
410
  }
404
411
  const remotePromises = fallbackServers.map(
405
- (server) => fetchFromServer(
412
+ (server) => fetchScopedFromServer(
406
413
  server,
407
414
  dbKey,
408
415
  isLoggedIn ? currentToken : void 0,
@@ -148,6 +148,8 @@ export {
148
148
  toolImageNotices,
149
149
  resetToolImageDelivery,
150
150
  toolImageDelivery,
151
+ MAX_TOOL_IMAGES_PER_REQUEST,
152
+ MAX_TOOL_IMAGE_BASE64_BYTES_PER_REQUEST,
151
153
  formatToolImageBudgetNote,
152
154
  createToolImageBudget,
153
155
  toolImageSource,
@@ -0,0 +1,166 @@
1
+ // node_modules/js-base64/base64.mjs
2
+ var version = "3.9.6";
3
+ var VERSION = version;
4
+ var _TD = typeof TextDecoder === "function" ? new TextDecoder("utf-8", { ignoreBOM: true }) : void 0;
5
+ var _TE = typeof TextEncoder === "function" ? new TextEncoder() : void 0;
6
+ var b64ch = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
7
+ var b64chs = Array.prototype.slice.call(b64ch);
8
+ var b64tab = ((a) => {
9
+ let tab = {};
10
+ a.forEach((c, i) => tab[c] = i);
11
+ return tab;
12
+ })(b64chs);
13
+ var b64re = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;
14
+ var _fromCC = String.fromCharCode.bind(String);
15
+ var _U8Afrom = typeof Uint8Array.from === "function" ? Uint8Array.from.bind(Uint8Array) : (it) => new Uint8Array(Array.prototype.slice.call(it, 0));
16
+ var _mkUriSafe = (src) => src.replace(/=/g, "").replace(/[+\/]/g, (m0) => m0 == "+" ? "-" : "_");
17
+ var _tidyB64 = (s) => s.replace(/[^A-Za-z0-9\+\/]/g, "");
18
+ var btoaPolyfill = (bin) => {
19
+ let u32, c0, c1, c2, asc = "";
20
+ const pad = bin.length % 3;
21
+ for (let i = 0; i < bin.length; ) {
22
+ if ((c0 = bin.charCodeAt(i++)) > 255 || (c1 = bin.charCodeAt(i++)) > 255 || (c2 = bin.charCodeAt(i++)) > 255)
23
+ throw new TypeError("invalid character found");
24
+ u32 = c0 << 16 | c1 << 8 | c2;
25
+ asc += b64chs[u32 >> 18 & 63] + b64chs[u32 >> 12 & 63] + b64chs[u32 >> 6 & 63] + b64chs[u32 & 63];
26
+ }
27
+ return pad ? asc.slice(0, pad - 3) + "===".substring(pad) : asc;
28
+ };
29
+ var _btoa = typeof btoa === "function" ? (bin) => btoa(bin) : btoaPolyfill;
30
+ var _fromUint8Array = typeof Uint8Array.prototype.toBase64 === "function" ? Function.prototype.call.bind(Uint8Array.prototype.toBase64) : (u8a) => {
31
+ const maxargs = 4096;
32
+ let strs = [];
33
+ for (let i = 0, l = u8a.length; i < l; i += maxargs) {
34
+ strs.push(_fromCC.apply(null, u8a.subarray(i, i + maxargs)));
35
+ }
36
+ return _btoa(strs.join(""));
37
+ };
38
+ var fromUint8Array = (u8a, urlsafe = false) => urlsafe ? _mkUriSafe(_fromUint8Array(u8a)) : _fromUint8Array(u8a);
39
+ var cb_utob = (c) => {
40
+ if (c.length < 2) {
41
+ var cc = c.charCodeAt(0);
42
+ return cc < 128 ? c : cc < 2048 ? _fromCC(192 | cc >>> 6) + _fromCC(128 | cc & 63) : _fromCC(224 | cc >>> 12 & 15) + _fromCC(128 | cc >>> 6 & 63) + _fromCC(128 | cc & 63);
43
+ } else {
44
+ var cc = 65536 + (c.charCodeAt(0) - 55296) * 1024 + (c.charCodeAt(1) - 56320);
45
+ return _fromCC(240 | cc >>> 18 & 7) + _fromCC(128 | cc >>> 12 & 63) + _fromCC(128 | cc >>> 6 & 63) + _fromCC(128 | cc & 63);
46
+ }
47
+ };
48
+ var re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\x00-\x7F]/g;
49
+ var utob = (u) => u.replace(re_utob, cb_utob);
50
+ var _encode = _TE ? (s) => _fromUint8Array(_TE.encode(s)) : (s) => _btoa(utob(s));
51
+ var encode = (src, urlsafe = false) => urlsafe ? _mkUriSafe(_encode(src)) : _encode(src);
52
+ var encodeURI = (src) => encode(src, true);
53
+ var re_btou = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g;
54
+ var cb_btou = (cccc) => {
55
+ switch (cccc.length) {
56
+ case 4:
57
+ var cp = (7 & cccc.charCodeAt(0)) << 18 | (63 & cccc.charCodeAt(1)) << 12 | (63 & cccc.charCodeAt(2)) << 6 | 63 & cccc.charCodeAt(3), offset = cp - 65536;
58
+ return _fromCC((offset >>> 10) + 55296) + _fromCC((offset & 1023) + 56320);
59
+ case 3:
60
+ return _fromCC((15 & cccc.charCodeAt(0)) << 12 | (63 & cccc.charCodeAt(1)) << 6 | 63 & cccc.charCodeAt(2));
61
+ default:
62
+ return _fromCC((31 & cccc.charCodeAt(0)) << 6 | 63 & cccc.charCodeAt(1));
63
+ }
64
+ };
65
+ var btou = (b) => b.replace(re_btou, cb_btou);
66
+ var atobPolyfill = (asc) => {
67
+ asc = asc.replace(/\s+/g, "");
68
+ if (!b64re.test(asc))
69
+ throw new TypeError("malformed base64.");
70
+ asc += "==".slice(2 - (asc.length & 3));
71
+ let u24, r1, r2;
72
+ let binArray = [];
73
+ for (let i = 0; i < asc.length; ) {
74
+ u24 = b64tab[asc.charAt(i++)] << 18 | b64tab[asc.charAt(i++)] << 12 | (r1 = b64tab[asc.charAt(i++)]) << 6 | (r2 = b64tab[asc.charAt(i++)]);
75
+ if (r1 === 64) {
76
+ binArray.push(_fromCC(u24 >> 16 & 255));
77
+ } else if (r2 === 64) {
78
+ binArray.push(_fromCC(u24 >> 16 & 255, u24 >> 8 & 255));
79
+ } else {
80
+ binArray.push(_fromCC(u24 >> 16 & 255, u24 >> 8 & 255, u24 & 255));
81
+ }
82
+ }
83
+ return binArray.join("");
84
+ };
85
+ var _atob = typeof atob === "function" ? (asc) => atob(_tidyB64(asc)) : atobPolyfill;
86
+ var _toUint8Array = typeof Uint8Array.fromBase64 === "function" ? (a) => Uint8Array.fromBase64(a) : (a) => _U8Afrom(_atob(a).split("").map((c) => c.charCodeAt(0)));
87
+ var toUint8Array = (a) => _toUint8Array(_unURI(a));
88
+ var _decode = _TD ? (a) => _TD.decode(_toUint8Array(a)) : (a) => btou(_atob(a));
89
+ var _unURI = (a) => _tidyB64(a.replace(/[-_]/g, (m0) => m0 == "-" ? "+" : "/"));
90
+ var decode = (src) => _decode(_unURI(src));
91
+ var isValid = (src) => {
92
+ if (typeof src !== "string")
93
+ return false;
94
+ const s = src.replace(/\s+/g, "").replace(/={0,2}$/, "");
95
+ if (s.length % 4 === 1)
96
+ return false;
97
+ return !/[^\s0-9a-zA-Z\+/]/.test(s) || !/[^\s0-9a-zA-Z\-_]/.test(s);
98
+ };
99
+ var _noEnum = (v) => {
100
+ return {
101
+ value: v,
102
+ enumerable: false,
103
+ writable: true,
104
+ configurable: true
105
+ };
106
+ };
107
+ var extendString = function() {
108
+ const _add = (name, body) => Object.defineProperty(String.prototype, name, _noEnum(body));
109
+ _add("fromBase64", function() {
110
+ return decode(this);
111
+ });
112
+ _add("toBase64", function(urlsafe) {
113
+ return encode(this, urlsafe);
114
+ });
115
+ _add("toBase64URI", function() {
116
+ return encode(this, true);
117
+ });
118
+ _add("toBase64URL", function() {
119
+ return encode(this, true);
120
+ });
121
+ _add("toUint8Array", function() {
122
+ return toUint8Array(this);
123
+ });
124
+ };
125
+ var extendUint8Array = function() {
126
+ const _add = (name, body) => Object.defineProperty(Uint8Array.prototype, name, _noEnum(body));
127
+ _add("toBase64", function(urlsafe) {
128
+ return fromUint8Array(this, urlsafe);
129
+ });
130
+ _add("toBase64URI", function() {
131
+ return fromUint8Array(this, true);
132
+ });
133
+ _add("toBase64URL", function() {
134
+ return fromUint8Array(this, true);
135
+ });
136
+ };
137
+ var extendBuiltins = () => {
138
+ extendString();
139
+ extendUint8Array();
140
+ };
141
+ var gBase64 = {
142
+ version,
143
+ VERSION,
144
+ atob: _atob,
145
+ atobPolyfill,
146
+ btoa: _btoa,
147
+ btoaPolyfill,
148
+ fromBase64: decode,
149
+ toBase64: encode,
150
+ encode,
151
+ encodeURI,
152
+ encodeURL: encodeURI,
153
+ utob,
154
+ btou,
155
+ decode,
156
+ isValid,
157
+ fromUint8Array,
158
+ toUint8Array,
159
+ extendString,
160
+ extendUint8Array,
161
+ extendBuiltins
162
+ };
163
+
164
+ export {
165
+ gBase64
166
+ };
@@ -3,21 +3,21 @@ import {
3
3
  } from "./chunk-UVLYNWIE.js";
4
4
  import {
5
5
  getActiveDialogKey
6
- } from "./chunk-S2NTVGA2.js";
6
+ } from "./chunk-I2OYPD3Y.js";
7
7
  import {
8
8
  patch,
9
9
  selectById
10
- } from "./chunk-AVHRSJUH.js";
10
+ } from "./chunk-TXFYIWAW.js";
11
11
  import {
12
12
  __toESM
13
13
  } from "./chunk-U67V476Y.js";
14
14
 
15
15
  // packages/chat/dialog/actions/setDialogExtraReferencesAction.ts
16
16
  var import_formatISO = __toESM(require_formatISO());
17
- var setDialogExtraReferencesAction = async (extraReferences, thunkApi) => {
17
+ var setDialogExtraReferencesAction = async (extraReferences, thunkApi, dialogKey) => {
18
18
  const { dispatch, getState } = thunkApi;
19
19
  const state = getState();
20
- const currentDialogKey = getActiveDialogKey();
20
+ const currentDialogKey = dialogKey === void 0 ? getActiveDialogKey() : dialogKey;
21
21
  if (!currentDialogKey) {
22
22
  throw new Error("No current dialog selected");
23
23
  }
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getModelConfig
3
- } from "./chunk-KYH7XW3K.js";
3
+ } from "./chunk-OJRTTERA.js";
4
4
  import {
5
5
  isPlatformHostedDeepseekModel,
6
6
  isPlatformHostedOpenAIImageModel,
7
7
  resolvePlatformHostedRouting
8
- } from "./chunk-OBSEKCVK.js";
8
+ } from "./chunk-U4VSBDO5.js";
9
9
  import {
10
10
  asTrimmedLowercaseString
11
11
  } from "./chunk-QSJ3HFEF.js";
@@ -1,57 +1,47 @@
1
1
  import {
2
- DEFAULT_AUTO_APPROVED_SELF_UPDATE_FIELDS,
3
- DEFAULT_USER_PREFERENCE_PROFILE,
4
- normalizeAgentUpdateFieldList,
5
- normalizePolicyLevelSetting,
6
- normalizeSystemBuiltinSkills,
7
- normalizeTonePresetSetting,
8
- resolveUserEnabledSkills
9
- } from "./chunk-GGKNJ42M.js";
2
+ setDialogExtraReferencesAction
3
+ } from "./chunk-XAFOLWLU.js";
10
4
  import {
11
5
  isSkillSummaryMarker
12
6
  } from "./chunk-VF4K2QE6.js";
13
- import {
14
- setDialogExtraReferencesAction
15
- } from "./chunk-GIABSSWQ.js";
16
7
  import {
17
8
  fetchAndCacheTableRows
18
- } from "./chunk-YXMBJ7UH.js";
9
+ } from "./chunk-6BGJHJRN.js";
19
10
  import {
20
- getActiveDialogKey
21
- } from "./chunk-S2NTVGA2.js";
11
+ resolveDialogRuntimeAgentKey
12
+ } from "./chunk-FXX6VFMV.js";
22
13
  import {
23
14
  require_react
24
- } from "./chunk-5FUN7EG4.js";
15
+ } from "./chunk-RD3QLZQV.js";
25
16
  import {
26
17
  createSpaceKey
27
18
  } from "./chunk-UAD2WT54.js";
28
19
  import {
29
20
  selectById
30
- } from "./chunk-AVHRSJUH.js";
21
+ } from "./chunk-TXFYIWAW.js";
31
22
  import {
32
23
  selectRuntimeSnapshot
33
- } from "./chunk-2VUZSVAS.js";
24
+ } from "./chunk-F3FQPVHE.js";
34
25
  import {
35
- createAsyncThunk,
36
- createSelector
37
- } from "./chunk-7Z6EW7AH.js";
26
+ createAsyncThunk
27
+ } from "./chunk-7OTNBI77.js";
38
28
  import {
39
29
  selectIdentityUserId
40
30
  } from "./chunk-PXYBUFDB.js";
41
31
  import {
42
32
  isAgentSkillDisabled
43
- } from "./chunk-EOWLBDY6.js";
33
+ } from "./chunk-MM73SP4K.js";
44
34
  import {
45
- DEFAULT_SYSTEM_AGENT_CAPABILITIES,
46
35
  listBuiltinSkills,
47
36
  resolveBuiltinSkillByName
48
- } from "./chunk-GNHMRBYZ.js";
37
+ } from "./chunk-EBKHA63G.js";
49
38
  import {
50
39
  parseSkillDocProtocol
51
40
  } from "./chunk-W6RFEDN4.js";
52
41
  import {
53
- asTrimmedNonEmptyStringArray
54
- } from "./chunk-I42VC5KR.js";
42
+ isDialogRecordKeyForId,
43
+ parseDialogKey
44
+ } from "./chunk-OJKUU3LP.js";
55
45
  import {
56
46
  toErrorMessage
57
47
  } from "./chunk-HNMXYYJR.js";
@@ -150,46 +140,73 @@ function waitForAbortableDelay(ms, signal) {
150
140
  });
151
141
  }
152
142
 
153
- // packages/app/settings/fieldSelectors.ts
154
- var selectMaxExecutionTime = (state) => state.settings.maxExecutionTime;
155
- var selectGlobalPrompt = (state) => state.settings.globalPrompt;
156
- var selectEnabledSkills = createSelector(
157
- [
158
- (state) => Boolean(
159
- state.settings && Object.prototype.hasOwnProperty.call(state.settings, "enabledSkills")
160
- ),
161
- (state) => state.settings?.enabledSkills,
162
- (state) => state.settings?.enabledPromptSkills
163
- ],
164
- (hasOwnEnabledSkills, enabledSkills, enabledPromptSkills) => {
165
- const preferences = hasOwnEnabledSkills ? { enabledSkills, enabledPromptSkills } : { enabledPromptSkills };
166
- return resolveUserEnabledSkills(preferences);
143
+ // packages/ai/tools/memoryToolContext.ts
144
+ var trimmed = (value) => typeof value === "string" && value.trim() ? value.trim() : void 0;
145
+ function findLoadedDialogs(state, dialogId, exactKey) {
146
+ const entities = state?.db?.entities;
147
+ if (!entities || typeof entities !== "object") return [];
148
+ const matches = [];
149
+ for (const key of Object.keys(entities)) {
150
+ if (!isDialogRecordKeyForId(key, dialogId)) continue;
151
+ const record = entities[key];
152
+ if (!record || trimmed(record.id) !== dialogId) continue;
153
+ if (exactKey && key !== exactKey) continue;
154
+ matches.push({ key, record });
167
155
  }
168
- );
169
- var selectUserTonePreset = (state) => normalizeTonePresetSetting(state.settings.userTonePreset);
170
- var selectKnowledgeCaptureLevel = (state) => normalizePolicyLevelSetting(
171
- state.settings.knowledgeCaptureLevel,
172
- DEFAULT_USER_PREFERENCE_PROFILE.knowledgeCaptureLevel
173
- );
174
- var selectSpaceContextLevel = (state) => state.settings.enableReadCurrentSpace === false ? 1 : normalizePolicyLevelSetting(
175
- state.settings.spaceContextLevel,
176
- DEFAULT_USER_PREFERENCE_PROFILE.spaceContextLevel
177
- );
178
- var selectAutoApproveSelfUpdateFields = createSelector(
179
- [(state) => state.settings.autoApproveSelfUpdateFields],
180
- (fields) => normalizeAgentUpdateFieldList(
181
- fields,
182
- DEFAULT_AUTO_APPROVED_SELF_UPDATE_FIELDS
183
- )
184
- );
185
- var selectAiRecentContentLimit = (state) => state.settings.aiRecentContentLimit ?? 50;
186
- var selectSystemBuiltinSkills = createSelector(
187
- [(state) => state.settings.systemBuiltinSkills],
188
- (systemBuiltinSkills) => normalizeSystemBuiltinSkills(
189
- systemBuiltinSkills,
190
- DEFAULT_SYSTEM_AGENT_CAPABILITIES
191
- )
192
- );
156
+ return matches;
157
+ }
158
+ function resolveMemoryToolContext(state, context) {
159
+ return resolveToolAttributionContext(state, context);
160
+ }
161
+ function resolveToolAttributionContext(state, context, options) {
162
+ const UNRESOLVED = options?.errorLabel ?? "\u65E0\u6CD5\u786E\u5B9A\u8BB0\u5FC6\u5F52\u5C5E";
163
+ const agentKey = trimmed(context?.agentKey);
164
+ if (options?.requireAgentKey && !agentKey) {
165
+ throw new Error(`${UNRESOLVED}\uFF1A\u6267\u884C\u4E0A\u4E0B\u6587\u7F3A\u5C11 agentKey\uFF0C\u4E0D\u4F1A\u4ECE\u5F53\u524D\u5BF9\u8BDD\u63A8\u65AD\u3002`);
166
+ }
167
+ const contextDialogId = trimmed(context?.dialogId);
168
+ const contextDialogKey = trimmed(context?.dialogKey);
169
+ let keyIdentity = null;
170
+ if (contextDialogKey) {
171
+ keyIdentity = parseDialogKey(contextDialogKey);
172
+ if (!keyIdentity) {
173
+ throw new Error(
174
+ `${UNRESOLVED}\uFF1A\u6267\u884C\u4E0A\u4E0B\u6587\u91CC\u7684\u5BF9\u8BDD\u952E ${contextDialogKey} \u4E0D\u662F\u53EF\u89E3\u6790\u7684 dialog-<owner>-<id>\uFF0C\u4E0D\u4F1A\u6309 id \u731C\u5F52\u5C5E\u3002`
175
+ );
176
+ }
177
+ if (contextDialogId && keyIdentity.dialogId !== contextDialogId) {
178
+ throw new Error(
179
+ `${UNRESOLVED}\uFF1A\u6267\u884C\u4E0A\u4E0B\u6587\u81EA\u76F8\u77DB\u76FE\u2014\u2014\u5BF9\u8BDD\u952E ${contextDialogKey} \u6307\u5411 ${keyIdentity.dialogId}\uFF0C\u4F46 dialogId \u662F ${contextDialogId}\u3002`
180
+ );
181
+ }
182
+ }
183
+ const dialogId = keyIdentity?.dialogId ?? contextDialogId;
184
+ if (!dialogId) {
185
+ throw new Error(
186
+ `${UNRESOLVED}\uFF1A\u672C\u6B21\u5DE5\u5177\u8C03\u7528\u7F3A\u5C11\u6240\u5C5E\u5BF9\u8BDD\uFF08dialogId\uFF09\uFF0C\u4E0D\u4F1A\u6539\u7528\u5F53\u524D\u6253\u5F00\u7684\u5BF9\u8BDD\u6216\u89C6\u56FE Space\u3002`
187
+ );
188
+ }
189
+ const matches = findLoadedDialogs(state, dialogId, contextDialogKey);
190
+ if (matches.length === 0) {
191
+ throw new Error(
192
+ `${UNRESOLVED}\uFF1A\u5BF9\u8BDD ${dialogId} \u672A\u52A0\u8F7D\uFF0C\u65E0\u6CD5\u786E\u8BA4\u5B83\u7684 Space \u5F52\u5C5E\u3002`
193
+ );
194
+ }
195
+ if (matches.length > 1) {
196
+ throw new Error(
197
+ `${UNRESOLVED}\uFF1A\u52A0\u8F7D\u4E2D\u6709 ${matches.length} \u4E2A\u540C id \u7684\u5BF9\u8BDD\uFF08${matches.map((m) => m.key).join(" / ")}\uFF09\uFF0C\u4EC5\u51ED dialogId \u65E0\u6CD5\u786E\u5B9A\u5F52\u5C5E\uFF1B\u6267\u884C\u4E0A\u4E0B\u6587\u9700\u8981\u63D0\u4F9B\u5B8C\u6574\u5BF9\u8BDD\u952E\u3002`
198
+ );
199
+ }
200
+ const [dialog] = matches;
201
+ return {
202
+ dialogId,
203
+ agentKey: resolveDialogRuntimeAgentKey(
204
+ dialog.record,
205
+ agentKey
206
+ ),
207
+ spaceId: trimmed(dialog.record.spaceId)
208
+ };
209
+ }
193
210
 
194
211
  // packages/ai/tools/loadSkillTool.ts
195
212
  var loadSkillFunctionSchema = {
@@ -323,23 +340,7 @@ async function listSkillCandidates(thunkApi) {
323
340
  }
324
341
  return candidates;
325
342
  }
326
- var resolveCurrentAgentKeyForSkillGate = (thunkApi) => {
327
- try {
328
- const state = thunkApi?.getState?.();
329
- if (!state) return null;
330
- const currentDialogKey = getActiveDialogKey();
331
- if (!currentDialogKey) return null;
332
- const dialogConfig = selectById(
333
- state,
334
- currentDialogKey
335
- );
336
- return asTrimmedNonEmptyStringArray(dialogConfig?.cybots)[0] ?? null;
337
- } catch {
338
- return null;
339
- }
340
- };
341
- var readCurrentAgentSkillSource = async (thunkApi) => {
342
- const agentKey = resolveCurrentAgentKeyForSkillGate(thunkApi);
343
+ var readCurrentAgentSkillSource = async (thunkApi, agentKey) => {
343
344
  if (!agentKey) return null;
344
345
  const db = thunkApi?.extra?.db;
345
346
  if (!db) return null;
@@ -364,6 +365,14 @@ async function loadSkillFunc(args, thunkApi, context) {
364
365
  }
365
366
  let requestedName = asTrimmedString(exact ? source === "space" ? args.dbKey : args.slug : args?.name);
366
367
  if (!requestedName) throw new Error("loadSkill \u9700\u8981\u63D0\u4F9B name\u3002");
368
+ const state = thunkApi.getState();
369
+ const attribution = resolveToolAttributionContext(state, context, {
370
+ requireAgentKey: false,
371
+ errorLabel: "loadSkill: \u65E0\u6CD5\u786E\u5B9A\u5F52\u5C5E"
372
+ });
373
+ const dialogKey = context?.dialogKey?.trim() || Object.keys(state.db.entities).find(
374
+ (key) => isDialogRecordKeyForId(key, attribution.dialogId) && state.db.entities[key]?.id?.trim() === attribution.dialogId
375
+ );
367
376
  const candidates = await listSkillCandidates(thunkApi);
368
377
  let resolution;
369
378
  if (!exact) {
@@ -380,7 +389,7 @@ async function loadSkillFunc(args, thunkApi, context) {
380
389
  const builtinEntry = resolution?.kind === "builtin" ? resolution.entry : null;
381
390
  const resolvedSlug = builtinEntry?.slug ?? matched?.skillId ?? null;
382
391
  if (resolvedSlug) {
383
- const agentSkillSource = await readCurrentAgentSkillSource(thunkApi);
392
+ const agentSkillSource = await readCurrentAgentSkillSource(thunkApi, attribution.agentKey);
384
393
  if (agentSkillSource && isAgentSkillDisabled(agentSkillSource, resolvedSlug)) {
385
394
  return {
386
395
  rawData: {
@@ -397,7 +406,7 @@ async function loadSkillFunc(args, thunkApi, context) {
397
406
  const body2 = builtinEntry.content;
398
407
  const dbKey = builtinEntry.slug;
399
408
  if (context?.skipSkillReferencePersist !== true) {
400
- await persistLoadedSkillReference(thunkApi, dbKey, requestedName);
409
+ await persistLoadedSkillReference(thunkApi, dialogKey, dbKey, requestedName);
401
410
  }
402
411
  return {
403
412
  rawData: {
@@ -437,7 +446,7 @@ ${body2}`
437
446
  }
438
447
  const body = extractSkillBody(page);
439
448
  if (context?.skipSkillReferencePersist !== true) {
440
- await persistLoadedSkillReference(thunkApi, matched.dbKey, requestedName);
449
+ await persistLoadedSkillReference(thunkApi, dialogKey, matched.dbKey, requestedName);
441
450
  }
442
451
  return {
443
452
  rawData: {
@@ -451,10 +460,9 @@ ${body2}`
451
460
  ${body}`
452
461
  };
453
462
  }
454
- async function persistLoadedSkillReference(thunkApi, dbKey, name) {
463
+ async function persistLoadedSkillReference(thunkApi, currentDialogKey, dbKey, name) {
455
464
  try {
456
465
  const state = thunkApi?.getState?.();
457
- const currentDialogKey = getActiveDialogKey();
458
466
  if (!state || !currentDialogKey) return;
459
467
  const dialogConfig = selectById(
460
468
  state,
@@ -468,7 +476,7 @@ async function persistLoadedSkillReference(thunkApi, dbKey, name) {
468
476
  title: name,
469
477
  type: "instruction"
470
478
  };
471
- await setDialogExtraReferencesAction([...existing, newRef], thunkApi);
479
+ await setDialogExtraReferencesAction([...existing, newRef], thunkApi, currentDialogKey);
472
480
  } catch {
473
481
  }
474
482
  }
@@ -607,10 +615,10 @@ ${block.question.choices.map((item) => `- ${item.label}${item.detail ? ` \u2014
607
615
 
608
616
  // packages/core/clipMultilineText.ts
609
617
  function clipMultilineText(value, max) {
610
- const trimmed = value.trim();
611
- if (trimmed.length <= max) return trimmed;
612
- return `${trimmed.slice(0, max)}
613
- ...[truncated ${trimmed.length - max} chars]`;
618
+ const trimmed2 = value.trim();
619
+ if (trimmed2.length <= max) return trimmed2;
620
+ return `${trimmed2.slice(0, max)}
621
+ ...[truncated ${trimmed2.length - max} chars]`;
614
622
  }
615
623
 
616
624
  // packages/render/table/utils/tableSerialization.ts
@@ -783,7 +791,7 @@ var executeToolRun = createAsyncThunk(
783
791
  if (!executionInput) {
784
792
  throw new Error(`ToolRun ${id} has no input to execute with.`);
785
793
  }
786
- const { findToolExecutor } = await import("./tools-6DFTHCFX.js");
794
+ const { findToolExecutor } = await import("./tools-AT6H73LD.js");
787
795
  const { executor } = findToolExecutor(run.toolName);
788
796
  toolRunStarted({
789
797
  id: run.id,
@@ -807,7 +815,7 @@ var executeToolRun = createAsyncThunk(
807
815
  const latestState = thunkApi.getState();
808
816
  const userId = selectIdentityUserId(latestState);
809
817
  if (userId) {
810
- const { fetchUserSpaceMemberships } = await import("./memberThunks-JRYNONYV.js");
818
+ const { fetchUserSpaceMemberships } = await import("./memberThunks-DIITWU4M.js");
811
819
  await thunkApi.dispatch(fetchUserSpaceMemberships(userId));
812
820
  }
813
821
  }
@@ -837,13 +845,6 @@ export {
837
845
  waitForAbortableDelay,
838
846
  clipMultilineText,
839
847
  fetchAndSerializeTable,
840
- selectMaxExecutionTime,
841
- selectGlobalPrompt,
842
- selectUserTonePreset,
843
- selectKnowledgeCaptureLevel,
844
- selectSpaceContextLevel,
845
- selectAutoApproveSelfUpdateFields,
846
- selectAiRecentContentLimit,
847
848
  ToolResultError,
848
849
  getToolResultErrorData,
849
850
  createToolRunId,
@@ -853,6 +854,8 @@ export {
853
854
  toolRunUpdated,
854
855
  toolRunFailed,
855
856
  getAllToolRuns,
857
+ resolveMemoryToolContext,
858
+ resolveToolAttributionContext,
856
859
  loadSkillFunctionSchema,
857
860
  loadSkillFunc
858
861
  };