nolo-cli 0.226.0-alpha.1 → 0.226.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 (259) hide show
  1. package/README.md +3 -5
  2. package/{_executeModel-UE2NJPZD.js → _executeModel-IZ2MCXHO.js} +89 -83
  3. package/{action-CK64LS6S.js → action-VDEW6WLI.js} +9 -6
  4. package/{addContentAction-EQXMFNPR.js → addContentAction-7YVXHIPQ.js} +15 -14
  5. package/{addDialogAgentAction-RSDZDASD.js → addDialogAgentAction-BX7B47HF.js} +18 -17
  6. package/{agentDeleteCommand-SOI25WK7.js → agentDeleteCommand-N7ELXPLD.js} +145 -138
  7. package/{agentEmailCommands-UGWQQNKM.js → agentEmailCommands-OFS477PV.js} +144 -133
  8. package/{agentFavoriteCommands-2LKGKSUD.js → agentFavoriteCommands-7LOP3HUD.js} +5 -5
  9. package/{agentGrantCommands-QQV4N4JW.js → agentGrantCommands-L6O2HVJI.js} +5 -5
  10. package/agentListCommands-IQQHJSXP.js +644 -0
  11. package/{agentMachineCommands-M6IKO7XE.js → agentMachineCommands-NS65BEW7.js} +75 -66
  12. package/{agentProviderCommands-7BSJH7TO.js → agentProviderCommands-SS6M6VGY.js} +6 -6
  13. package/{agentPullCommand-XN6ZPBUW.js → agentPullCommand-QQQZSC6S.js} +6 -6
  14. package/agentRecordCommands-4VE7CNLC.js +188 -0
  15. package/agentRunCommand-2MUXHKNW.js +223 -0
  16. package/{agentRunControl-DFEEOFC7.js → agentRunControl-55GL6Q3M.js} +23 -15
  17. package/{agentRuntimeLocal-GSTYFEX4.js → agentRuntimeLocal-5DB2P4MU.js} +63 -49
  18. package/{agentSlice-7PTNWEED.js → agentSlice-5VTAFG43.js} +19 -18
  19. package/{appDeleteCommands-L7HL4AWF.js → appDeleteCommands-EDKUPHJM.js} +67 -58
  20. package/{appDeployCommands-SGSUNFZR.js → appDeployCommands-JO74GW4L.js} +67 -58
  21. package/{appDeployStatusCommands-AAA3XD54.js → appDeployStatusCommands-U77ZUHX7.js} +67 -58
  22. package/{appGetCommands-LN72GAOA.js → appGetCommands-QCMHBYPX.js} +67 -58
  23. package/{appListCommands-IJQQ3VND.js → appListCommands-ZQJYEXI6.js} +67 -58
  24. package/{authCommand-7JXW54U4.js → authCommand-W4KXRZLI.js} +33 -28
  25. package/{authCommands-YDNAIDEY.js → authCommands-6AUYO65N.js} +15 -10
  26. package/{builtinSkillRegistry-PXH7EGQB.js → builtinSkillRegistry-GHE3RD3V.js} +8 -8
  27. package/{chromeCommands-G5UDKVSV.js → chromeCommands-S7AW3AOD.js} +383 -6
  28. package/{chromeOpsCommands-YKX2QX3A.js → chromeOpsCommands-TBPM6MR4.js} +6 -6
  29. package/{chunk-7Z6EW7AH.js → chunk-247AAJRK.js} +13 -6
  30. package/{chunk-P2ZLUIW2.js → chunk-2BSLGODA.js} +350 -25
  31. package/{chunk-4HFTBHBF.js → chunk-2N4UBHUU.js} +8 -8
  32. package/chunk-2SXN7LAY.js +15 -0
  33. package/{chunk-GSAS72AN.js → chunk-2T5BHLID.js} +2871 -1565
  34. package/{chunk-XI2BWJM5.js → chunk-324FWHUA.js} +20 -3
  35. package/{chunk-VFBVA3U2.js → chunk-3OQFXODL.js} +131 -40
  36. package/{chunk-BGGHA5DV.js → chunk-3ORFJP2Z.js} +1 -1
  37. package/{chunk-OWH2BLNU.js → chunk-3UNAGTBW.js} +32 -95
  38. package/{chunk-LM2PS3YS.js → chunk-4F7SWSWO.js} +26 -13
  39. package/{chunk-SBVTHMEG.js → chunk-4FE3IWRE.js} +1 -1
  40. package/{chunk-GOAPXKQU.js → chunk-4UK6UBXF.js} +4 -4
  41. package/{chunk-4JVNURX4.js → chunk-4YFC3DWW.js} +68 -16
  42. package/chunk-4ZCTKB27.js +31 -0
  43. package/chunk-53W5BXLN.js +340 -0
  44. package/{chunk-TD6QCQ5G.js → chunk-5GRWWUB4.js} +4 -4
  45. package/{chunk-JWXITTQB.js → chunk-5HUO7SEX.js} +9 -107
  46. package/{chunk-ZH6MUQEO.js → chunk-6326DRQY.js} +1 -1
  47. package/{chunk-AVHRSJUH.js → chunk-6MQWGA5F.js} +31 -24
  48. package/{chunk-67BE44IS.js → chunk-6MX6S6TE.js} +3 -3
  49. package/chunk-6RSNVJGO.js +279 -0
  50. package/{chunk-BRW24CTE.js → chunk-6S6CZUXK.js} +42 -33
  51. package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
  52. package/{chunk-CVS5IMJ5.js → chunk-6XLWUNZB.js} +25 -25
  53. package/{chunk-YGMBIXCF.js → chunk-6XRPBZRS.js} +4 -2
  54. package/{chunk-62HXNQVV.js → chunk-776CXKMX.js} +1 -1
  55. package/{chunk-6J4TTPS2.js → chunk-7AWKDRXG.js} +5 -5
  56. package/{chunk-3KNEE64G.js → chunk-7GTXPS3D.js} +16 -16
  57. package/{chunk-FS3RA7D2.js → chunk-7HUHOCIY.js} +147 -162
  58. package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
  59. package/chunk-BEM6LPD2.js +734 -0
  60. package/{chunk-AGP3YSEC.js → chunk-BH7CEVOH.js} +46 -1
  61. package/chunk-BIDSIRTS.js +307 -0
  62. package/{chunk-VTW7VKZX.js → chunk-C4KX626C.js} +15 -15
  63. package/chunk-C5A54QS7.js +108 -0
  64. package/{chunk-4PMZVBDU.js → chunk-CHYYSFFM.js} +6 -6
  65. package/{chunk-VREDDN25.js → chunk-CJTB3OYB.js} +14 -9
  66. package/{chunk-YFLVRVYK.js → chunk-DLT2DN4M.js} +1 -1
  67. package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
  68. package/{chunk-EOWLBDY6.js → chunk-DOK7GDRU.js} +1 -1
  69. package/{chunk-5NC6A2RZ.js → chunk-DPAIQLAL.js} +105 -102
  70. package/{chunk-KFHREHUQ.js → chunk-DXWGFL2Z.js} +89 -1
  71. package/{chunk-XN23AUVU.js → chunk-EKXPHL7M.js} +8 -5
  72. package/{chunk-DISQCYPE.js → chunk-ENYTIRIO.js} +6 -6
  73. package/{chunk-2TIQO6TC.js → chunk-ER3P6MBT.js} +206 -308
  74. package/{chunk-M3JEW6N6.js → chunk-F26GAEH3.js} +10 -0
  75. package/{chunk-JM5C4EUA.js → chunk-F4MCAOWN.js} +6 -6
  76. package/chunk-FDZ2GBWO.js +166 -0
  77. package/{chunk-PMDVQBGA.js → chunk-GAHJLSDO.js} +14 -7
  78. package/{chunk-N5PQJKCY.js → chunk-GES5GIAU.js} +14 -13
  79. package/{chunk-HYHIAM6T.js → chunk-HQVNO7FH.js} +66 -35
  80. package/chunk-HSWEFHFS.js +103 -0
  81. package/{chunk-S2NTVGA2.js → chunk-I2OYPD3Y.js} +1 -1
  82. package/{chunk-F7DU25CE.js → chunk-IIG3TT73.js} +460 -123
  83. package/{chunk-AK5O76CC.js → chunk-IZJFTY4R.js} +3 -3
  84. package/{chunk-2VA6TU4I.js → chunk-J25ESVUW.js} +22 -19
  85. package/{chunk-TUIWP2LF.js → chunk-J2XZZXIH.js} +4 -4
  86. package/{chunk-JVRQ6YVK.js → chunk-JBWXPACD.js} +1 -1
  87. package/{chunk-D726I5AZ.js → chunk-JVJ53XCH.js} +2 -2
  88. package/{chunk-TXGQ4O5S.js → chunk-KC2QVCI7.js} +20 -174
  89. package/{chunk-UKS7D2NL.js → chunk-KF2DWSAH.js} +113 -28
  90. package/chunk-KK3FCYZM.js +647 -0
  91. package/{chunk-ZZ4M2I3R.js → chunk-KLD7K5FD.js} +349 -16
  92. package/{chunk-JIADJPUV.js → chunk-KMW5CRRM.js} +1564 -2955
  93. package/{chunk-N5Z2V73W.js → chunk-LELADM5Q.js} +1 -1
  94. package/{chunk-4NA3YTBC.js → chunk-LMFMV5UC.js} +8 -8
  95. package/{chunk-KZU52OJ5.js → chunk-LZOOUQAZ.js} +6 -6
  96. package/{chunk-VV7TXWOC.js → chunk-M5EA44QU.js} +6 -6
  97. package/{chunk-UYOICCYG.js → chunk-MEDPR36J.js} +64 -89
  98. package/chunk-MFXJY44K.js +133 -0
  99. package/chunk-MVOZ22RZ.js +26 -0
  100. package/{chunk-3QFLXA24.js → chunk-N6EN3HK3.js} +3 -3
  101. package/{chunk-SOF4OWDM.js → chunk-NEG5LYK5.js} +1 -3
  102. package/{chunk-HJAO2NAL.js → chunk-ODGSLWLO.js} +593 -370
  103. package/{chunk-OB6DVWPF.js → chunk-OGZE6BZG.js} +331 -99
  104. package/{chunk-KYH7XW3K.js → chunk-OJRTTERA.js} +77 -2
  105. package/{chunk-2VUZSVAS.js → chunk-OKPC4QNX.js} +57 -20
  106. package/{chunk-SOG7OEXX.js → chunk-ONFFUQYM.js} +1 -1
  107. package/{chunk-KNIIRXHF.js → chunk-P244EH4W.js} +46 -8
  108. package/chunk-P27E22MA.js +203 -0
  109. package/{chunk-YDBMZ7FV.js → chunk-PK7VT4ZU.js} +3 -3
  110. package/{chunk-EUCFKKDM.js → chunk-PVFYPUIM.js} +40 -10
  111. package/{chunk-HOCHUZQ7.js → chunk-QJTZ76CP.js} +24 -6
  112. package/{chunk-5RKUPJYL.js → chunk-QLUYDJST.js} +11 -3
  113. package/{chunk-EVPIBQ5I.js → chunk-QUJKDFZW.js} +17 -17
  114. package/{chunk-C4VAR65S.js → chunk-QXUVCIPB.js} +204 -124
  115. package/{chunk-X4OVEYPX.js → chunk-QYNABNNQ.js} +13 -13
  116. package/{chunk-MK2Q7ZJD.js → chunk-R7XWZDOH.js} +58 -24
  117. package/{chunk-5FUN7EG4.js → chunk-RD3QLZQV.js} +83 -47
  118. package/{chunk-KC4SCKXO.js → chunk-RGUWOMXU.js} +1234 -1451
  119. package/{chunk-IZIN2UNJ.js → chunk-RH44TIHX.js} +206 -27
  120. package/{chunk-GNHMRBYZ.js → chunk-RIMFTQMC.js} +282 -58
  121. package/{chunk-VQUWV3YR.js → chunk-S25VJYXV.js} +9 -3
  122. package/{chunk-X7YC2OHB.js → chunk-SBRJOYND.js} +723 -355
  123. package/{chunk-UEKXWO7A.js → chunk-SBRSXY67.js} +18 -7
  124. package/chunk-SR4FE5VD.js +9 -0
  125. package/{chunk-4WVJLODK.js → chunk-T23G6PXQ.js} +8 -3
  126. package/chunk-T3WSFTBS.js +62 -0
  127. package/{chunk-KEN3N2TN.js → chunk-TB5KTLNB.js} +15 -12
  128. package/{chunk-VP3BINY7.js → chunk-TOK555CQ.js} +31 -1
  129. package/{chunk-OBSEKCVK.js → chunk-U4VSBDO5.js} +88 -0
  130. package/{chunk-PPJYZRSQ.js → chunk-U5LOKQ2R.js} +30 -14
  131. package/{chunk-GGKNJ42M.js → chunk-UDT4SI37.js} +18 -108
  132. package/{chunk-CKT6QUE2.js → chunk-UHW6SCVK.js} +1 -1
  133. package/{chunk-GVGOEMNV.js → chunk-UQXOORR3.js} +5 -5
  134. package/{chunk-GS4OTYCH.js → chunk-UR7555FE.js} +9 -9
  135. package/{chunk-QLFCTYRH.js → chunk-UWOCASVL.js} +20 -13
  136. package/{chunk-C4WTX5TU.js → chunk-V2V5Q6DU.js} +2 -2
  137. package/{chunk-2ZKFCIJJ.js → chunk-VCU5GV42.js} +1 -1
  138. package/{chunk-FTQWYWUI.js → chunk-VMWY7TUA.js} +1 -1
  139. package/chunk-VNALJT32.js +33394 -0
  140. package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
  141. package/chunk-WBSJAIZP.js +170 -0
  142. package/chunk-WDWZPASX.js +29 -0
  143. package/chunk-WFGNWWJI.js +326 -0
  144. package/{chunk-UJKTI5PG.js → chunk-WRKMXMU7.js} +2 -1
  145. package/chunk-WVOZ35E4.js +1438 -0
  146. package/{chunk-FIYSMXHY.js → chunk-WWTSEBDF.js} +1 -1
  147. package/{chunk-E2BESSAW.js → chunk-X4O7FJF5.js} +2 -0
  148. package/{chunk-GIABSSWQ.js → chunk-XDNXKFWF.js} +6 -6
  149. package/{chunk-GBZ4YKEO.js → chunk-XLN2GD6Z.js} +7 -7
  150. package/{chunk-45LZIYXB.js → chunk-XNEDFWT4.js} +2 -2
  151. package/{chunk-EWPDMS4N.js → chunk-Y22P6ASC.js} +32 -17
  152. package/{chunk-LJSNEV7M.js → chunk-Y3DOUQQQ.js} +8 -8
  153. package/{chunk-KOXKKHFE.js → chunk-Y5EBOURK.js} +10 -5
  154. package/{chunk-L5I543VB.js → chunk-YGDYYFRX.js} +20 -24
  155. package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
  156. package/{chunk-PVZY6P3S.js → chunk-YTEY27GN.js} +2 -2
  157. package/chunk-YUZ2DAIH.js +34 -0
  158. package/chunk-Z6YTCDU4.js +24 -0
  159. package/{chunk-MOMR7NMG.js → chunk-ZCVBIIUE.js} +4 -4
  160. package/{chunk-AZQZ5XPM.js → chunk-ZCZLTJEW.js} +98 -57
  161. package/{chunk-KN3HEZIQ.js → chunk-ZVOL2MAJ.js} +1 -1
  162. package/{cliAgentConfigHelpers-KICKKNYQ.js → cliAgentConfigHelpers-6OFDHJFT.js} +13 -13
  163. package/{cliAuthorityBrokerClient-XHH7MH2P.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
  164. package/{cliEnvHelpers-VPSJ4XWC.js → cliEnvHelpers-CNMP3RDX.js} +1 -1
  165. package/{cliExecutor-4MAX3PZL.js → cliExecutor-K6FDZTQ2.js} +3 -1
  166. package/cliLocalAgentRecordReader-FHIMCBUK.js +102 -0
  167. package/{commandRegistry-XSMTI5PG.js → commandRegistry-OKIWAJIS.js} +113 -101
  168. package/{contentThunks-S4NNC7R2.js → contentThunks-VF2DCU46.js} +41 -38
  169. package/{cooldownCommands-X7P5M2V5.js → cooldownCommands-QL6DWGVU.js} +4 -4
  170. package/{createAgentAutomationAction-TH7ZEACJ.js → createAgentAutomationAction-BGET7Q6K.js} +41 -38
  171. package/{createDialogAction-SYZAYIIQ.js → createDialogAction-XYDQZETK.js} +42 -40
  172. package/{createPageAction-7Y4U6TXO.js → createPageAction-74S5RO7U.js} +46 -43
  173. package/{db-CS4ZJQKV.js → db-6NRZLEW2.js} +10 -7
  174. package/{dbSlice-ZJPDIFER.js → dbSlice-FI7VNDR5.js} +14 -13
  175. package/{deleteFile-Q3YDB4ML.js → deleteFile-GD62MPZW.js} +10 -7
  176. package/{dialogCommands-V5IYEOQP.js → dialogCommands-Y6DHZUAM.js} +71 -64
  177. package/dialogMessageRecord-OAV77LT7.js +7 -0
  178. package/{dialogNotifyCommand-77B57PL6.js → dialogNotifyCommand-MKXL4NGL.js} +15 -15
  179. package/{dialogSlice-O3RHDAWK.js → dialogSlice-XAUKSWZ4.js} +41 -38
  180. package/{dialogUsageCommand-HTVPR2CX.js → dialogUsageCommand-BZPKR3DW.js} +6 -6
  181. package/{docCreateCommands-36WS33BK.js → docCreateCommands-PHDFOQBM.js} +66 -57
  182. package/{docDeleteCommands-C4CS4XLF.js → docDeleteCommands-OSHJM67Y.js} +69 -60
  183. package/{docReadCommands-QZMSFMPN.js → docReadCommands-E6QYCFMS.js} +66 -57
  184. package/{docStore-PYNEODAH.js → docStore-ZZT2BEBU.js} +16 -15
  185. package/{docUpdateCommands-BYI64HVV.js → docUpdateCommands-DHIOPK2C.js} +66 -57
  186. package/fetchMessages-TQEUZD7H.js +2 -2
  187. package/{getPricing-VNGFM4PN.js → getPricing-RNRITFOP.js} +6 -6
  188. package/{handleSendMessageAction-Z43FP2E2.js → handleSendMessageAction-ARUU6CNF.js} +83 -78
  189. package/{hostCredentialCreate-Y7YIGKP4.js → hostCredentialCreate-SNQT73H4.js} +131 -119
  190. package/index.js +56 -18
  191. package/keys-RWF7UCB4.js +1 -1
  192. package/{lib-OT5OTXRU.js → lib-62SWPXNF.js} +3 -7
  193. package/{localDialogRead-SVTPA5GY.js → localDialogRead-3T2KMCRC.js} +1 -1
  194. package/{localRuntimeAdapter-ZLJONQZS.js → localRuntimeAdapter-MHI6Y2IZ.js} +143 -130
  195. package/{localRuntimeAuthority-IBJAT62G.js → localRuntimeAuthority-7DKIT7UH.js} +4 -2
  196. package/{localRuntimeDb-N7KHDXS2.js → localRuntimeDb-5WZ4RJJO.js} +1 -1
  197. package/{machineCommands-4ZLMRIA3.js → machineCommands-3O6Y27R4.js} +283 -348
  198. package/machineWsRunDispatch-5PFLR5XC.js +203 -0
  199. package/markdownToSlate-KIYM7B3P.js +8 -0
  200. package/mcpLocalAuthorizeCommand-BQCQ2KRJ.js +106 -0
  201. package/{memberThunks-JRYNONYV.js → memberThunks-TU6A6OBV.js} +24 -19
  202. package/{memoryCommands-5WC3T66U.js → memoryCommands-BC6REPQB.js} +4 -4
  203. package/{models-H5NNZRLH.js → models-CINY5UZR.js} +2 -2
  204. package/{overlay-THLKYIWY.js → overlay-JA3SPVUS.js} +7 -3
  205. package/package.json +1 -1
  206. package/{projectArchive-JBX6HNK6.js → projectArchive-X2EVXU3N.js} +47 -44
  207. package/{providerPresetApply-J3WMRPD2.js → providerPresetApply-HUWNV2NI.js} +7 -7
  208. package/{providerRegistry-KJGB5XWS.js → providerRegistry-7FWKDKZJ.js} +7 -7
  209. package/{read-Q7GOHGNP.js → read-QAHEQID5.js} +9 -8
  210. package/{readDocTool-Z5OQ6422.js → readDocTool-KG5DP6EM.js} +1 -1
  211. package/{readlineWorkspace-WFPIAAAT.js → readlineWorkspace-SO3APHVP.js} +8125 -6196
  212. package/rememberExplicit-CPAPONSI.js +15 -0
  213. package/{removeDialogAgentAction-U3F2MNAY.js → removeDialogAgentAction-QZCCVK2G.js} +20 -19
  214. package/{runAgentClientLoop-STI5TKDJ.js → runAgentClientLoop-FLHHCOVH.js} +106 -81
  215. package/{runtimeDoctorCommands-UXKXYBW6.js → runtimeDoctorCommands-DN3I52C6.js} +17 -17
  216. package/{secretCommands-LJXOOYA7.js → secretCommands-36BCE3UE.js} +4 -4
  217. package/{setDialogExtraReferencesAction-G3WSJ7EM.js → setDialogExtraReferencesAction-PDPTYSEW.js} +17 -16
  218. package/{setPrimaryDialogAgentAction-6FHAHZBB.js → setPrimaryDialogAgentAction-DOUIPR66.js} +20 -19
  219. package/{settingThunks-AXTBX3Q5.js → settingThunks-MHGGP6UE.js} +186 -67
  220. package/{skillDiscovery-B5V23AXP.js → skillDiscovery-MDDKPTW3.js} +4 -3
  221. package/{spaceCommands-GUKMDRWN.js → spaceCommands-JH7UYE3K.js} +70 -61
  222. package/{store-JRVN62NM.js → store-Z53ICFL3.js} +3 -1
  223. package/{streamAgentChatTurn-A2WL5OOF.js → streamAgentChatTurn-VDDA2TX6.js} +200 -195
  224. package/{switchDialogAgentAction-UOFIAGPL.js → switchDialogAgentAction-7USK3DAP.js} +18 -17
  225. package/{tableCommands-HITDSLHS.js → tableCommands-UONBFC7L.js} +15 -12
  226. package/{toolApiClient-OGQEBQVX.js → toolApiClient-53YMJ2G6.js} +8 -6
  227. package/{tools-6NU5E6BN.js → tools-MIOCXKMG.js} +72 -68
  228. package/tuiRestart-ET3QISZ5.js +41 -0
  229. package/{tuiSummaryLlmCaller-7WLUKNP2.js → tuiSummaryLlmCaller-MSINBP3M.js} +21 -20
  230. package/{updateCommands-RJVCRSBP.js → updateCommands-5OYND6EF.js} +8 -6
  231. package/{updateDialogTitleAction-VMKU2Y67.js → updateDialogTitleAction-2L4CC4YO.js} +43 -40
  232. package/{usageCommand-YPJ2ZI2F.js → usageCommand-JTKDAG6I.js} +3 -3
  233. package/{usageRebuildCommand-FERQO74C.js → usageRebuildCommand-4TFZCKXM.js} +4 -4
  234. package/webapi-24RZDIIQ.js +2488 -0
  235. package/{windowsSelfUpdate-KERHIAB4.js → windowsSelfUpdate-HIYNL3VR.js} +2 -2
  236. package/workContext-Y3ADAPZU.js +14 -0
  237. package/workContextAccess-UZHDLBUR.js +11 -0
  238. package/workContextWriteNotice-YCSSMHN4.js +7 -0
  239. package/{workloadLifecycle-O2I3NZ2Q.js → workloadLifecycle-ZCSQCHG3.js} +9 -9
  240. package/agentListCommands-YBNOQ5T3.js +0 -991
  241. package/agentRecordCommands-3HL7Z4X6.js +0 -177
  242. package/agentRunCommand-C64A6MPL.js +0 -208
  243. package/chunk-2THCNKE4.js +0 -147
  244. package/chunk-2WZXXAQD.js +0 -57
  245. package/chunk-5ZMIIR23.js +0 -265
  246. package/chunk-652XYZGP.js +0 -352
  247. package/chunk-BJF2MHJ3.js +0 -118
  248. package/chunk-KEPOVMF4.js +0 -91
  249. package/chunk-QVBXJNZ2.js +0 -81
  250. package/chunk-QZI44GWV.js +0 -776
  251. package/cliLocalAgentRecordReader-6FXGFBI3.js +0 -90
  252. package/machineWsRunDispatch-L7Z3ULDF.js +0 -192
  253. package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
  254. package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
  255. package/{chunk-BLVSFYQ3.js → chunk-LISC7BD4.js} +3 -3
  256. package/{chunk-SNBZZPYH.js → chunk-OQHIVPG4.js} +3 -3
  257. package/{chunk-47ITIXO7.js → chunk-USGHJSGO.js} +3 -3
  258. package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
  259. package/{offlineMarxistsAgentCommand-4IC3Y4C6.js → offlineMarxistsAgentCommand-XVXUE6G5.js} +3 -3
package/chunk-5ZMIIR23.js DELETED
@@ -1,265 +0,0 @@
1
- // packages/database-engine/cliAuthorityBrokerClient.ts
2
- import { createConnection } from "node:net";
3
- var DEFAULT_ITERATOR_PAGE_SIZE = 200;
4
- var CliAuthorityBrokerUnavailableError = class extends Error {
5
- reason = "cli_authority_broker_unavailable";
6
- status = 503;
7
- endpoint;
8
- constructor(endpoint, cause) {
9
- super(`CLI authority broker unavailable at ${endpoint}. Start the local authority broker and retry.`);
10
- this.name = "CliAuthorityBrokerUnavailableError";
11
- this.endpoint = endpoint;
12
- if (cause !== void 0) {
13
- this.cause = cause;
14
- }
15
- }
16
- };
17
- var CliAuthorityBrokerTimeoutError = class extends Error {
18
- reason = "cli_authority_broker_timeout";
19
- endpoint;
20
- timeoutMs;
21
- constructor(endpoint, timeoutMs, cause) {
22
- super(`CLI authority broker request at ${endpoint} timed out after ${timeoutMs}ms`);
23
- this.name = "CliAuthorityBrokerTimeoutError";
24
- this.endpoint = endpoint;
25
- this.timeoutMs = timeoutMs;
26
- if (cause !== void 0) {
27
- this.cause = cause;
28
- }
29
- }
30
- };
31
- var CliAuthorityBrokerProtocolError = class extends Error {
32
- code;
33
- retryable;
34
- constructor(error) {
35
- super(error.message);
36
- this.name = "CliAuthorityBrokerProtocolError";
37
- this.code = error.code;
38
- this.retryable = error.retryable === true;
39
- }
40
- };
41
- function isCliAuthorityBrokerUnavailableError(error) {
42
- return error instanceof CliAuthorityBrokerUnavailableError || typeof error === "object" && error !== null && error.reason === "cli_authority_broker_unavailable" && error.status === 503;
43
- }
44
- function isCliAuthorityBrokerTimeoutError(error) {
45
- return error instanceof CliAuthorityBrokerTimeoutError || typeof error === "object" && error !== null && error.reason === "cli_authority_broker_timeout";
46
- }
47
- function isCliAuthorityBrokerProtocolError(error) {
48
- return error instanceof CliAuthorityBrokerProtocolError || typeof error === "object" && error !== null && error.name === "CliAuthorityBrokerProtocolError";
49
- }
50
- function isBrokerUnavailableCause(error) {
51
- if (!error) return false;
52
- if (isCliAuthorityBrokerTimeoutError(error) || isCliAuthorityBrokerProtocolError(error)) {
53
- return false;
54
- }
55
- if (isCliAuthorityBrokerUnavailableError(error)) {
56
- return true;
57
- }
58
- if (typeof error === "object") {
59
- const code = error.code;
60
- if (typeof code === "string" && /^(ECONNREFUSED|ENOENT|ECONNRESET|EPIPE|EADDRNOTAVAIL|ENETUNREACH|EHOSTUNREACH)$/i.test(code)) {
61
- return true;
62
- }
63
- }
64
- const message = error instanceof Error ? error.message : String(error);
65
- if (/timed out/i.test(message)) return false;
66
- if (/malformed response|protocol mismatch/i.test(message)) return false;
67
- return /ECONNREFUSED|ENOENT|ECONNRESET|EPIPE|closed connection without response|returned no response/i.test(message);
68
- }
69
- function resolveBrokerSocketTarget(endpoint) {
70
- if (endpoint.startsWith("unix://")) {
71
- return { kind: "unix", path: endpoint.slice("unix://".length) };
72
- }
73
- if (endpoint.startsWith("tcp://")) {
74
- const url = new URL(endpoint);
75
- return {
76
- kind: "tcp",
77
- host: url.hostname,
78
- port: Number(url.port)
79
- };
80
- }
81
- throw new Error(`Unsupported CLI authority broker endpoint: ${endpoint}`);
82
- }
83
- function createCliAuthorityBrokerSocketInvoker(options) {
84
- const target = resolveBrokerSocketTarget(options.endpoint);
85
- const timeoutMs = options.timeoutMs ?? 5e3;
86
- return async (request) => {
87
- return await new Promise((resolve, reject) => {
88
- const socket = target.kind === "unix" ? createConnection(target.path) : createConnection({ host: target.host, port: target.port });
89
- let responseBuffer = "";
90
- let settled = false;
91
- const timeout = setTimeout(() => {
92
- finish(() => {
93
- socket.destroy();
94
- socket.unref?.();
95
- reject(new CliAuthorityBrokerTimeoutError(options.endpoint, timeoutMs));
96
- });
97
- }, timeoutMs);
98
- const finish = (fn) => {
99
- if (settled) return;
100
- settled = true;
101
- clearTimeout(timeout);
102
- fn();
103
- };
104
- socket.setEncoding("utf8");
105
- socket.on("connect", () => {
106
- socket.write(`${JSON.stringify(request)}
107
- `);
108
- });
109
- socket.on("data", (chunk) => {
110
- responseBuffer += chunk;
111
- });
112
- socket.on("end", () => {
113
- finish(() => {
114
- const payload = responseBuffer.trim();
115
- if (!payload) {
116
- reject(
117
- new CliAuthorityBrokerUnavailableError(
118
- options.endpoint,
119
- new Error(`CLI authority broker at ${options.endpoint} closed connection without response`)
120
- )
121
- );
122
- return;
123
- }
124
- try {
125
- resolve(JSON.parse(payload));
126
- } catch (parseError) {
127
- reject(
128
- new CliAuthorityBrokerProtocolError({
129
- code: "MALFORMED_RESPONSE",
130
- message: `CLI authority broker at ${options.endpoint} returned malformed response: ${parseError instanceof Error ? parseError.message : String(parseError)}`
131
- })
132
- );
133
- }
134
- });
135
- });
136
- socket.on("error", (error) => {
137
- finish(() => {
138
- if (isBrokerUnavailableCause(error)) {
139
- reject(new CliAuthorityBrokerUnavailableError(options.endpoint, error));
140
- } else {
141
- reject(error);
142
- }
143
- });
144
- });
145
- });
146
- };
147
- }
148
- async function invokeBrokerRequest(options, request) {
149
- try {
150
- const response = await options.invoke(request);
151
- if (!response || typeof response !== "object" || typeof response.ok !== "boolean") {
152
- throw new CliAuthorityBrokerProtocolError({
153
- code: "MALFORMED_RESPONSE",
154
- message: `CLI authority broker protocol mismatch at ${options.endpoint}`
155
- });
156
- }
157
- if (response.ok) {
158
- if (!response.result || typeof response.result !== "object") {
159
- throw new CliAuthorityBrokerProtocolError({
160
- code: "MALFORMED_RESPONSE",
161
- message: `CLI authority broker protocol mismatch at ${options.endpoint}`
162
- });
163
- }
164
- return response.result;
165
- }
166
- if (!response.error || typeof response.error !== "object" || typeof response.error.code !== "string" || typeof response.error.message !== "string") {
167
- throw new CliAuthorityBrokerProtocolError({
168
- code: "MALFORMED_RESPONSE",
169
- message: `CLI authority broker protocol mismatch at ${options.endpoint}`
170
- });
171
- }
172
- if (response.error.code === "BROKER_UNAVAILABLE") {
173
- throw new CliAuthorityBrokerUnavailableError(options.endpoint, response.error);
174
- }
175
- throw new CliAuthorityBrokerProtocolError(response.error);
176
- } catch (error) {
177
- if (isCliAuthorityBrokerTimeoutError(error)) throw error;
178
- if (isCliAuthorityBrokerUnavailableError(error)) throw error;
179
- if (isCliAuthorityBrokerProtocolError(error)) throw error;
180
- if (isBrokerUnavailableCause(error)) {
181
- throw new CliAuthorityBrokerUnavailableError(options.endpoint, error);
182
- }
183
- throw error;
184
- }
185
- }
186
- function createCliAuthorityBrokerClient(options) {
187
- const pageSize = options.iteratorPageSize ?? DEFAULT_ITERATOR_PAGE_SIZE;
188
- return {
189
- get location() {
190
- return options.location ?? options.endpoint;
191
- },
192
- get status() {
193
- return options.status ?? "broker";
194
- },
195
- async open() {
196
- await invokeBrokerRequest(options, { type: "status" });
197
- },
198
- async close() {
199
- },
200
- async get(key) {
201
- const result = await invokeBrokerRequest(options, { type: "get", key });
202
- if (result.type !== "get") {
203
- throw new Error(`CLI authority broker protocol mismatch for get at ${options.endpoint}`);
204
- }
205
- return result.value;
206
- },
207
- async put(key, value) {
208
- await invokeBrokerRequest(options, { type: "put", key, value });
209
- },
210
- async del(key) {
211
- await invokeBrokerRequest(options, { type: "del", key });
212
- },
213
- async batchWrite(ops) {
214
- await invokeBrokerRequest(options, { type: "batchWrite", ops });
215
- },
216
- createBatch() {
217
- const ops = [];
218
- return {
219
- put(key, value) {
220
- ops.push({ type: "put", key, value });
221
- },
222
- del(key) {
223
- ops.push({ type: "del", key });
224
- },
225
- async write() {
226
- await invokeBrokerRequest(options, { type: "batchWrite", ops });
227
- }
228
- };
229
- },
230
- iterator(iteratorOptions = {}) {
231
- return async function* iterate() {
232
- let cursor = void 0;
233
- while (true) {
234
- const result = await invokeBrokerRequest(options, {
235
- type: "iterator",
236
- options: iteratorOptions,
237
- cursor,
238
- limit: pageSize
239
- });
240
- if (result.type !== "iterator") {
241
- throw new Error(
242
- `CLI authority broker protocol mismatch for iterator at ${options.endpoint}`
243
- );
244
- }
245
- for (const entry of result.page.entries) {
246
- yield entry;
247
- }
248
- if (result.page.done || !result.page.nextCursor) return;
249
- cursor = result.page.nextCursor;
250
- }
251
- }();
252
- }
253
- };
254
- }
255
-
256
- export {
257
- CliAuthorityBrokerUnavailableError,
258
- CliAuthorityBrokerTimeoutError,
259
- CliAuthorityBrokerProtocolError,
260
- isCliAuthorityBrokerUnavailableError,
261
- isCliAuthorityBrokerTimeoutError,
262
- isCliAuthorityBrokerProtocolError,
263
- createCliAuthorityBrokerSocketInvoker,
264
- createCliAuthorityBrokerClient
265
- };
package/chunk-652XYZGP.js DELETED
@@ -1,352 +0,0 @@
1
- import {
2
- DEFAULT_AGENT_BASE_POLICY,
3
- DEFAULT_USER_PREFERENCE_PROFILE,
4
- isAccountOnDemandWorkflowSkill,
5
- resolveUserEnabledSkills
6
- } from "./chunk-GGKNJ42M.js";
7
- import {
8
- collectAgentSkillConfigIssues,
9
- describeAgentSkillModeValue,
10
- isAgentSkillDisabled,
11
- resolveAgentSkillConfig
12
- } from "./chunk-EOWLBDY6.js";
13
- import {
14
- resolveBuiltinSkillEntry,
15
- resolveBuiltinSkillPage,
16
- resolveSkillGraphFromRoots
17
- } from "./chunk-GNHMRBYZ.js";
18
- import {
19
- parseSkillDocProtocol
20
- } from "./chunk-W6RFEDN4.js";
21
-
22
- // packages/ai/skills/agentSkillPreferenceDiagnostics.ts
23
- var hasOwn = (value, key) => Object.prototype.hasOwnProperty.call(value, key);
24
- var resolveAgentSkillPreferenceSource = (preferences) => {
25
- if (!preferences || typeof preferences !== "object") {
26
- return { source: "empty", field: null };
27
- }
28
- if (hasOwn(preferences, "enabledSkills")) {
29
- return { source: "settings-record", field: "enabledSkills" };
30
- }
31
- if (hasOwn(preferences, "enabledPromptSkills")) {
32
- return { source: "legacy-field", field: "enabledPromptSkills" };
33
- }
34
- return { source: "empty", field: null };
35
- };
36
- var buildAgentSkillPreferenceDiagnostic = (input) => {
37
- const { source, field } = resolveAgentSkillPreferenceSource(input.preferences);
38
- const config = resolveAgentSkillConfig(input.agentConfig);
39
- const agentSkillModes = {};
40
- for (const slug of Object.keys(config).sort()) {
41
- agentSkillModes[slug] = config[slug];
42
- }
43
- const discardedSkills = collectAgentSkillConfigIssues(input.agentConfig).map(
44
- (issue) => ({
45
- slug: issue.slug,
46
- value: describeAgentSkillModeValue(issue.value),
47
- reason: issue.reason
48
- })
49
- );
50
- return {
51
- event: "agent_skill_preference_resolved",
52
- preferenceSource: source,
53
- preferenceField: field,
54
- enabledSkills: [...input.enabledSkills],
55
- enabledSkillCount: input.enabledSkills.length,
56
- agentSkillModes,
57
- agentSkillCount: Object.keys(agentSkillModes).length,
58
- discardedSkills,
59
- discardedSkillCount: discardedSkills.length
60
- };
61
- };
62
- var DIAGNOSTIC_PREFIX = "[nolo.skill.diagnostics] ";
63
- var seenSignatures = /* @__PURE__ */ new Set();
64
- var reportAgentSkillPreferenceDiagnostic = (diagnostic, sink) => {
65
- const signature = JSON.stringify(diagnostic);
66
- if (seenSignatures.has(signature)) return false;
67
- seenSignatures.add(signature);
68
- const write = sink ?? ((line) => {
69
- process.stderr.write(line);
70
- });
71
- write(`${DIAGNOSTIC_PREFIX}${signature}
72
- `);
73
- return true;
74
- };
75
-
76
- // packages/ai/skills/userSkillRuntime.ts
77
- async function resolveUserSkillRuntime(agentConfig, preferences) {
78
- const effectiveConfig = agentConfig && typeof agentConfig === "object" ? "rawRecord" in agentConfig && agentConfig.rawRecord && typeof agentConfig.rawRecord === "object" ? agentConfig.rawRecord : agentConfig : null;
79
- const disabledSlugs = /* @__PURE__ */ new Set();
80
- const requiredSlugs = /* @__PURE__ */ new Set();
81
- for (const [identifier, mode] of Object.entries(resolveAgentSkillConfig(effectiveConfig))) {
82
- const entry = resolveBuiltinSkillEntry(identifier);
83
- if (!entry) continue;
84
- if (mode === "disabled") disabledSlugs.add(entry.slug);
85
- if (mode === "required") requiredSlugs.add(entry.slug);
86
- }
87
- const enabledSkills = resolveUserEnabledSkills(preferences);
88
- reportAgentSkillPreferenceDiagnostic(
89
- buildAgentSkillPreferenceDiagnostic({
90
- agentConfig: effectiveConfig,
91
- preferences,
92
- enabledSkills
93
- })
94
- );
95
- const graph = await resolveSkillGraphFromRoots({
96
- roots: enabledSkills.map((identifier) => ({
97
- identifier,
98
- mode: isAccountOnDemandWorkflowSkill(identifier) && !requiredSlugs.has(identifier) ? "recommended" : "required"
99
- })),
100
- loadPage: async (identifier) => {
101
- const entry = resolveBuiltinSkillEntry(identifier);
102
- return entry ? resolveBuiltinSkillPage(entry.skillId) : null;
103
- },
104
- strictRequiredDependencies: true,
105
- admitSkill: (page, canonicalIdentifier) => {
106
- const entry = resolveBuiltinSkillEntry(canonicalIdentifier) ?? resolveBuiltinSkillEntry(page?.dbKey);
107
- return !!entry && !disabledSlugs.has(entry.slug) && !isAgentSkillDisabled(effectiveConfig, entry.slug);
108
- }
109
- });
110
- const admittedKeys = new Set(graph.visits.map((visit) => visit.dbKey));
111
- const contentByKey = new Map(
112
- [...graph.contentByKey].filter(([, page]) => page?.dbKey && admittedKeys.has(page.dbKey))
113
- );
114
- const skillPromptPatches = /* @__PURE__ */ new Set();
115
- const seen = /* @__PURE__ */ new Set();
116
- for (const visit of graph.visits) {
117
- if (visit.mode !== "required" || seen.has(visit.dbKey)) continue;
118
- seen.add(visit.dbKey);
119
- const page = contentByKey.get(visit.dbKey);
120
- const patch = (visit.meta?.skillConfig?.promptPatch || parseSkillDocProtocol(page?.content ?? "", visit.meta).content).trim();
121
- if (patch) skillPromptPatches.add(patch);
122
- }
123
- return { ...graph, contentByKey, skillPromptPatches: [...skillPromptPatches] };
124
- }
125
-
126
- // packages/ai/policy/runtimePolicy.ts
127
- var clampLevel = (value, fallback) => {
128
- const n = Number(value);
129
- if (n === 1 || n === 2 || n === 3 || n === 4) {
130
- return n;
131
- }
132
- return fallback;
133
- };
134
- var normalizeTonePreset = (value, fallback) => {
135
- switch (value) {
136
- case "professional":
137
- case "friendly":
138
- case "direct":
139
- case "pragmatic":
140
- case "default":
141
- return value;
142
- default:
143
- return fallback;
144
- }
145
- };
146
- var normalizeToneResolutionMode = (value, fallback) => {
147
- switch (value) {
148
- case "agent_first":
149
- case "user_first":
150
- case "blend":
151
- return value;
152
- default:
153
- return fallback;
154
- }
155
- };
156
- var normalizeSelfEvolutionMode = (value, fallback) => {
157
- switch (value) {
158
- case "none":
159
- case "knowledge_only":
160
- case "prompt_and_refs":
161
- case "full":
162
- return value;
163
- default:
164
- return fallback;
165
- }
166
- };
167
- var resolveAgentBasePolicy = (agentConfig) => {
168
- const raw = agentConfig?.basePolicy ?? {};
169
- return {
170
- version: 1,
171
- tone: {
172
- preset: normalizeTonePreset(
173
- raw?.tone?.preset,
174
- DEFAULT_AGENT_BASE_POLICY.tone?.preset ?? "default"
175
- ),
176
- resolutionMode: normalizeToneResolutionMode(
177
- raw?.tone?.resolutionMode,
178
- DEFAULT_AGENT_BASE_POLICY.tone?.resolutionMode ?? "blend"
179
- )
180
- },
181
- knowledgeCaptureMaxLevel: clampLevel(
182
- raw?.knowledgeCaptureMaxLevel,
183
- DEFAULT_AGENT_BASE_POLICY.knowledgeCaptureMaxLevel
184
- ),
185
- spaceContextMaxLevel: clampLevel(
186
- raw?.spaceContextMaxLevel,
187
- DEFAULT_AGENT_BASE_POLICY.spaceContextMaxLevel
188
- ),
189
- selfEvolutionMode: normalizeSelfEvolutionMode(
190
- raw?.selfEvolutionMode,
191
- DEFAULT_AGENT_BASE_POLICY.selfEvolutionMode
192
- )
193
- };
194
- };
195
- var resolveUserPreferenceProfile = (settingsRecord) => {
196
- const fallbackSpaceLevel = settingsRecord?.enableReadCurrentSpace === false ? 1 : DEFAULT_USER_PREFERENCE_PROFILE.spaceContextLevel;
197
- return {
198
- version: 1,
199
- tone: {
200
- preset: normalizeTonePreset(
201
- settingsRecord?.userTonePreset,
202
- DEFAULT_USER_PREFERENCE_PROFILE.tone?.preset ?? "default"
203
- )
204
- },
205
- knowledgeCaptureLevel: clampLevel(
206
- settingsRecord?.knowledgeCaptureLevel,
207
- DEFAULT_USER_PREFERENCE_PROFILE.knowledgeCaptureLevel
208
- ),
209
- spaceContextLevel: clampLevel(
210
- settingsRecord?.spaceContextLevel,
211
- fallbackSpaceLevel
212
- )
213
- };
214
- };
215
- var containsAny = (text, patterns) => patterns.some((pattern) => text.includes(pattern));
216
- var inferCaptureIntent = (userInput) => {
217
- const normalized = userInput.toLowerCase();
218
- if (containsAny(normalized, [
219
- "\u4FDD\u5B58",
220
- "\u5B58\u4E00\u4E0B",
221
- "\u6C89\u6DC0",
222
- "\u8BB0\u4F4F",
223
- "\u5199\u5165\u6587\u6863",
224
- "\u5EFA\u6587\u6863",
225
- "\u521B\u5EFA\u6587\u6863",
226
- "\u5BFC\u5165 skill",
227
- "\u5BFC\u5165\u8FD9\u4E2A skill",
228
- "\u786E\u8BA4\u5BFC\u5165",
229
- "\u786E\u8BA4\u5BFC\u5165\u8FD9\u4E2A skill",
230
- "\u5BFC\u5165\u8FD9\u4E2A\u6280\u80FD",
231
- "\u786E\u8BA4\u5BFC\u5165\u8FD9\u4E2A\u6280\u80FD",
232
- "\u521B\u5EFA skill",
233
- "\u521B\u5EFA\u8FD9\u4E2A skill",
234
- "skill \u6587\u6863",
235
- "\u521B\u5EFA\u8868\u683C",
236
- "createtable",
237
- "addtablerow",
238
- "addtablerows",
239
- "\u5EFA\u8868",
240
- "\u5EFA\u4E2A\u8868",
241
- "\u505A\u4E2A\u8868",
242
- "\u505A\u4E00\u5F20\u8868",
243
- "\u5199\u8868",
244
- "\u5199\u5165\u8868",
245
- "\u5199\u5165\u4E00\u884C",
246
- "\u5199\u5165 table",
247
- "\u653E\u5230 table",
248
- "\u5B58\u5230 table",
249
- "\u4FDD\u5B58\u5230 table",
250
- "\u8BB0\u5F55\u4E0B\u6765",
251
- "\u91C7\u96C6",
252
- "\u505A\u6570\u636E\u96C6",
253
- "\u505A\u6210\u6570\u636E\u96C6",
254
- "\u6574\u7406\u6210\u6570\u636E\u96C6",
255
- "\u6574\u7406\u6210\u8868",
256
- "\u6574\u7406\u6210\u4E00\u5F20\u8868",
257
- "\u5EFA\u7ACB\u4E00\u4E2A\u8868",
258
- "\u5EFA\u7ACB\u4E00\u5F20\u8868",
259
- "\u5EFA\u7ACB\u6210\u8868",
260
- "\u5EFA\u7ACB\u6210\u4E00\u5F20\u8868",
261
- "\u521B\u5EFA\u8FD9\u4E2A\u8868\u683C",
262
- "\u786E\u8BA4\u521B\u5EFA",
263
- "\u786E\u8BA4\u521B\u5EFA\u8FD9\u5F20\u8868\u683C",
264
- "create doc",
265
- "import skill",
266
- "confirm import",
267
- "create skill",
268
- "create table",
269
- "write table",
270
- "save to table",
271
- "dataset",
272
- "save this",
273
- "remember this",
274
- "document this"
275
- ])) {
276
- return "strong";
277
- }
278
- if (containsAny(normalized, [
279
- "\u603B\u7ED3",
280
- "\u65B9\u6848",
281
- "\u8C03\u7814",
282
- "\u89C4\u8303",
283
- "\u4F1A\u8BAE\u7EAA\u8981",
284
- "\u603B\u7ED3\u4E00\u4E0B",
285
- "research",
286
- "proposal",
287
- "spec",
288
- "summary"
289
- ])) {
290
- return "possible";
291
- }
292
- return "none";
293
- };
294
- var resolveTonePreset = (agentTone, userTone, mode) => {
295
- if (mode === "agent_first") {
296
- return agentTone === "default" ? userTone : agentTone;
297
- }
298
- if (mode === "user_first") {
299
- return userTone === "default" ? agentTone : userTone;
300
- }
301
- if (userTone !== "default") return userTone;
302
- return agentTone;
303
- };
304
- var preloadSummaryCountByLevel = (level) => ({ 1: 0, 2: 0, 3: 8, 4: 16 })[level];
305
- var preloadBudgetRatioByLevel = (level) => ({ 1: 0, 2: 0.01, 3: 0.04, 4: 0.08 })[level];
306
- var knowledgeCaptureLevelLabel = (level) => ({
307
- 1: "\u4E0D\u4E3B\u52A8\u521B\u5EFA",
308
- 2: "\u5148\u95EE\u518D\u521B\u5EFA",
309
- 3: "\u56DE\u7B54\u540E\u5EFA\u8BAE\u521B\u5EFA",
310
- 4: "\u9AD8\u4EF7\u503C\u7ED3\u679C\u53EF\u81EA\u52A8\u521B\u5EFA"
311
- })[level] ?? "\u672A\u77E5\u7EA7\u522B";
312
- var spaceContextLevelLabel = (level) => ({
313
- 1: "\u4E0D\u81EA\u52A8\u8BFB\u53D6",
314
- 2: "\u53EA\u770B\u7ED3\u6784\u548C\u6807\u9898",
315
- 3: "\u8F7B\u91CF\u8BFB\u53D6",
316
- 4: "\u81EA\u9002\u5E94\u8BFB\u53D6"
317
- })[level] ?? "\u672A\u77E5\u7EA7\u522B";
318
- var buildStaticUserPolicyContext = (params) => {
319
- const agentBasePolicy = resolveAgentBasePolicy(params.agentConfig);
320
- const userPreferenceProfile = resolveUserPreferenceProfile(params.settingsRecord);
321
- const tonePreset = resolveTonePreset(
322
- agentBasePolicy.tone?.preset ?? "default",
323
- userPreferenceProfile.tone?.preset ?? "default",
324
- agentBasePolicy.tone?.resolutionMode ?? "blend"
325
- );
326
- const knowledgeLevel = Math.min(
327
- agentBasePolicy.knowledgeCaptureMaxLevel,
328
- userPreferenceProfile.knowledgeCaptureLevel
329
- );
330
- const spaceLevel = Math.min(
331
- agentBasePolicy.spaceContextMaxLevel,
332
- userPreferenceProfile.spaceContextLevel
333
- );
334
- return [
335
- `\u7528\u6237\u8BED\u6C14\u504F\u597D\uFF1A${tonePreset}`,
336
- `\u77E5\u8BC6\u6C89\u6DC0\u7EA7\u522B\uFF1A${knowledgeLevel}\uFF08${knowledgeCaptureLevelLabel(knowledgeLevel)}\uFF09`,
337
- `\u7A7A\u95F4\u4E0A\u4E0B\u6587\u7EA7\u522B\uFF1A${spaceLevel}\uFF08${spaceContextLevelLabel(spaceLevel)}\uFF09`,
338
- "\u8BF7\u5C3D\u91CF\u4FDD\u7559 agent \u81EA\u8EAB\u89D2\u8272\u8BBE\u5B9A\uFF0C\u540C\u65F6\u6309\u7528\u6237\u504F\u597D\u8C03\u6574\u8868\u8FBE\u548C\u81EA\u52A8\u5316\u7A0B\u5EA6\u3002"
339
- ].join("\n");
340
- };
341
- var resolveSpaceContextPreloadPlan = (level) => ({
342
- preloadSummaryCount: preloadSummaryCountByLevel(level),
343
- preloadBudgetRatio: preloadBudgetRatioByLevel(level),
344
- includeRecentContent: level >= 3
345
- });
346
-
347
- export {
348
- inferCaptureIntent,
349
- buildStaticUserPolicyContext,
350
- resolveSpaceContextPreloadPlan,
351
- resolveUserSkillRuntime
352
- };