nolo-cli 0.240.0-alpha.3 → 0.242.0-alpha.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 (206) hide show
  1. package/README.md +3 -5
  2. package/{_executeModel-5NA4USGG.js → _executeModel-IZ2MCXHO.js} +77 -77
  3. package/{action-X75O3XPH.js → action-VDEW6WLI.js} +9 -9
  4. package/{addContentAction-GVC77QSN.js → addContentAction-7YVXHIPQ.js} +14 -14
  5. package/{addDialogAgentAction-KKDVAMW3.js → addDialogAgentAction-BX7B47HF.js} +17 -17
  6. package/{agentDeleteCommand-2RFGKFAB.js → agentDeleteCommand-N7ELXPLD.js} +107 -108
  7. package/{agentEmailCommands-GQCQKKOR.js → agentEmailCommands-OFS477PV.js} +110 -111
  8. package/{agentListCommands-HSGLDPDQ.js → agentListCommands-IQQHJSXP.js} +202 -164
  9. package/{agentMachineCommands-BISF6PVV.js → agentMachineCommands-NS65BEW7.js} +52 -49
  10. package/{agentProviderCommands-O3Q25PKU.js → agentProviderCommands-SS6M6VGY.js} +2 -2
  11. package/{agentPullCommand-G6U2LHMW.js → agentPullCommand-QQQZSC6S.js} +1 -1
  12. package/{agentRecordCommands-AOXPGYAJ.js → agentRecordCommands-4VE7CNLC.js} +103 -104
  13. package/{agentRunCommand-AFAIP7U7.js → agentRunCommand-2MUXHKNW.js} +109 -108
  14. package/{agentRunControl-VBL7UFSG.js → agentRunControl-55GL6Q3M.js} +11 -9
  15. package/{agentRuntimeLocal-T7BX2WGL.js → agentRuntimeLocal-5DB2P4MU.js} +51 -43
  16. package/{agentSlice-XJNKE3PG.js → agentSlice-5VTAFG43.js} +14 -14
  17. package/{appDeleteCommands-LURUSPY7.js → appDeleteCommands-EDKUPHJM.js} +52 -49
  18. package/{appDeployCommands-SMEW4AK2.js → appDeployCommands-JO74GW4L.js} +52 -49
  19. package/{appDeployStatusCommands-VYPJTBJK.js → appDeployStatusCommands-U77ZUHX7.js} +52 -49
  20. package/{appGetCommands-N4NI5GGJ.js → appGetCommands-QCMHBYPX.js} +52 -49
  21. package/{appListCommands-5C6ONN3Z.js → appListCommands-ZQJYEXI6.js} +52 -49
  22. package/{authCommand-4CVBDADE.js → authCommand-W4KXRZLI.js} +23 -19
  23. package/{authCommands-EHU2BHOX.js → authCommands-6AUYO65N.js} +10 -6
  24. package/{builtinSkillRegistry-AYWYQVA4.js → builtinSkillRegistry-GHE3RD3V.js} +6 -6
  25. package/{chromeCommands-G5UDKVSV.js → chromeCommands-S7AW3AOD.js} +383 -6
  26. package/{chromeOpsCommands-CSDG2HYN.js → chromeOpsCommands-TBPM6MR4.js} +1 -1
  27. package/{chunk-7TTMMOKH.js → chunk-247AAJRK.js} +1 -1
  28. package/{chunk-4X5AVCM7.js → chunk-2BSLGODA.js} +258 -23
  29. package/{chunk-P3IZUMIC.js → chunk-2N4UBHUU.js} +4 -4
  30. package/{chunk-A74QP4FI.js → chunk-2T5BHLID.js} +572 -208
  31. package/{chunk-H7ZYKHAZ.js → chunk-3OQFXODL.js} +102 -31
  32. package/{chunk-BIABIPGW.js → chunk-3ORFJP2Z.js} +1 -1
  33. package/{chunk-3FBAVU2Y.js → chunk-3UNAGTBW.js} +19 -84
  34. package/{chunk-DNZ4JJ7C.js → chunk-4F7SWSWO.js} +19 -6
  35. package/{chunk-2X7WFDT6.js → chunk-4FE3IWRE.js} +1 -1
  36. package/{chunk-N2JROHD3.js → chunk-4UK6UBXF.js} +3 -3
  37. package/{chunk-XS5A3EKX.js → chunk-4YFC3DWW.js} +75 -1
  38. package/chunk-53W5BXLN.js +340 -0
  39. package/{chunk-E5KJOZWY.js → chunk-5GRWWUB4.js} +3 -3
  40. package/{chunk-HCNOO374.js → chunk-6326DRQY.js} +1 -1
  41. package/{chunk-RM4UMFY4.js → chunk-6MQWGA5F.js} +10 -10
  42. package/{chunk-TEMLHVGX.js → chunk-6MX6S6TE.js} +3 -3
  43. package/{chunk-6WOLPIPY.js → chunk-6RSNVJGO.js} +2 -102
  44. package/{chunk-Y5OWZQMJ.js → chunk-6S6CZUXK.js} +19 -19
  45. package/{chunk-PDCV7P5W.js → chunk-6XIE5ZGI.js} +1 -1
  46. package/{chunk-FZKA3XFA.js → chunk-6XLWUNZB.js} +27 -27
  47. package/{chunk-62HXNQVV.js → chunk-776CXKMX.js} +1 -1
  48. package/{chunk-MYPKBJJO.js → chunk-7AWKDRXG.js} +2 -2
  49. package/{chunk-GDUC4VS2.js → chunk-7GTXPS3D.js} +10 -10
  50. package/{chunk-Z2WZAE4P.js → chunk-7HUHOCIY.js} +36 -30
  51. package/{chunk-PWTNI4N7.js → chunk-ANUP75N2.js} +22 -0
  52. package/{chunk-ULLHVDTZ.js → chunk-BH7CEVOH.js} +4 -4
  53. package/{chunk-A3LUWRQK.js → chunk-C4KX626C.js} +5 -5
  54. package/chunk-C5A54QS7.js +108 -0
  55. package/{chunk-DXW5WDHZ.js → chunk-CHYYSFFM.js} +6 -6
  56. package/{chunk-O6IPRAVV.js → chunk-CJTB3OYB.js} +2 -2
  57. package/{chunk-AVJDELEA.js → chunk-DLT2DN4M.js} +1 -1
  58. package/{chunk-LKA64WH4.js → chunk-DMPZMYH4.js} +37 -1
  59. package/{chunk-MM73SP4K.js → chunk-DOK7GDRU.js} +1 -1
  60. package/{chunk-VREG6ANQ.js → chunk-DPAIQLAL.js} +16 -16
  61. package/{chunk-ANJRDS6U.js → chunk-EKXPHL7M.js} +3 -3
  62. package/{chunk-TWTJV35S.js → chunk-ENYTIRIO.js} +3 -3
  63. package/{chunk-PGKA77TZ.js → chunk-ER3P6MBT.js} +170 -107
  64. package/{chunk-EEOOBRA7.js → chunk-F4MCAOWN.js} +2 -2
  65. package/{chunk-7NIBQ4HY.js → chunk-FDZ2GBWO.js} +30 -2
  66. package/{chunk-VSRISJXZ.js → chunk-GAHJLSDO.js} +1 -1
  67. package/{chunk-U3G7RRXJ.js → chunk-GES5GIAU.js} +8 -8
  68. package/{chunk-4IQVE43Z.js → chunk-HQVNO7FH.js} +22 -22
  69. package/{chunk-DVYAFH2Q.js → chunk-HSWEFHFS.js} +1 -1
  70. package/{chunk-MECDGHLK.js → chunk-IIG3TT73.js} +43 -6
  71. package/{chunk-YGCOJNFZ.js → chunk-IZJFTY4R.js} +3 -3
  72. package/{chunk-BXSMFPTG.js → chunk-J25ESVUW.js} +10 -10
  73. package/{chunk-CVJRVBJL.js → chunk-J2XZZXIH.js} +4 -4
  74. package/{chunk-3EMIEC27.js → chunk-JVJ53XCH.js} +1 -1
  75. package/{chunk-AH5R7BYW.js → chunk-KC2QVCI7.js} +6 -6
  76. package/{chunk-MYOSN6BT.js → chunk-KF2DWSAH.js} +34 -13
  77. package/chunk-KK3FCYZM.js +647 -0
  78. package/{chunk-PRMEU7BT.js → chunk-KLD7K5FD.js} +7 -7
  79. package/{chunk-7AJRJGSQ.js → chunk-KMW5CRRM.js} +801 -381
  80. package/{chunk-Y2MF4DCJ.js → chunk-LELADM5Q.js} +1 -1
  81. package/{chunk-RTHFJZ6M.js → chunk-LMFMV5UC.js} +2 -2
  82. package/{chunk-2574ANSV.js → chunk-LZOOUQAZ.js} +4 -4
  83. package/{chunk-HOM6LTEW.js → chunk-M5EA44QU.js} +6 -6
  84. package/{chunk-IUMS6F53.js → chunk-MEDPR36J.js} +9 -5
  85. package/{chunk-6D25V6CB.js → chunk-MFXJY44K.js} +4 -4
  86. package/chunk-MVOZ22RZ.js +26 -0
  87. package/{chunk-CBUZ6DKA.js → chunk-N6EN3HK3.js} +1 -1
  88. package/{chunk-VS276URX.js → chunk-NEG5LYK5.js} +1 -1
  89. package/{chunk-B7DE5XJW.js → chunk-ODGSLWLO.js} +249 -66
  90. package/{chunk-S2MHR4PU.js → chunk-OGZE6BZG.js} +190 -118
  91. package/{chunk-CD3RU7XL.js → chunk-OJRTTERA.js} +62 -2
  92. package/{chunk-GXXY2NL3.js → chunk-OKPC4QNX.js} +37 -2
  93. package/{chunk-5QZSEQSK.js → chunk-ONFFUQYM.js} +1 -1
  94. package/{chunk-BGGAY6OK.js → chunk-P244EH4W.js} +3 -3
  95. package/chunk-P27E22MA.js +203 -0
  96. package/{chunk-UFC4J7OY.js → chunk-PK7VT4ZU.js} +3 -3
  97. package/{chunk-4FIO2S7Z.js → chunk-QLUYDJST.js} +1 -1
  98. package/{chunk-AEQMKYZN.js → chunk-QUJKDFZW.js} +7 -7
  99. package/{chunk-G22P367E.js → chunk-QXUVCIPB.js} +62 -18
  100. package/{chunk-IJTXNLQE.js → chunk-QYNABNNQ.js} +6 -6
  101. package/{chunk-TRHJ4NJB.js → chunk-RGUWOMXU.js} +626 -237
  102. package/{chunk-L32W3PRP.js → chunk-RH44TIHX.js} +165 -16
  103. package/{chunk-EBKHA63G.js → chunk-RIMFTQMC.js} +178 -46
  104. package/{chunk-OOJNQK6V.js → chunk-S25VJYXV.js} +8 -2
  105. package/{chunk-BGGV6B5O.js → chunk-SBRJOYND.js} +280 -139
  106. package/{chunk-KZPEGO6D.js → chunk-SBRSXY67.js} +6 -6
  107. package/chunk-SR4FE5VD.js +9 -0
  108. package/{chunk-4WVJLODK.js → chunk-T23G6PXQ.js} +8 -3
  109. package/{chunk-D374I563.js → chunk-T3WSFTBS.js} +1 -1
  110. package/{chunk-VP3BINY7.js → chunk-TOK555CQ.js} +31 -1
  111. package/{chunk-OBSEKCVK.js → chunk-U4VSBDO5.js} +88 -0
  112. package/{chunk-OX6GNNVT.js → chunk-U5LOKQ2R.js} +24 -13
  113. package/{chunk-LYDEFPQP.js → chunk-UDT4SI37.js} +1 -1
  114. package/{chunk-CKZPMJNU.js → chunk-UQXOORR3.js} +5 -5
  115. package/{chunk-FFYE5ATM.js → chunk-UR7555FE.js} +11 -11
  116. package/{chunk-F3XI6WQP.js → chunk-UWOCASVL.js} +5 -5
  117. package/{chunk-A5EVA6HU.js → chunk-V2V5Q6DU.js} +2 -2
  118. package/{chunk-PROOOQZ3.js → chunk-VCU5GV42.js} +1 -1
  119. package/{chunk-F6YWDVIB.js → chunk-VMWY7TUA.js} +1 -1
  120. package/{chunk-RETQOQ4D.js → chunk-VNALJT32.js} +2 -2
  121. package/{chunk-HGDKT2D6.js → chunk-VTHWBTRE.js} +177 -1
  122. package/{chunk-X7IA2B7R.js → chunk-WBSJAIZP.js} +7 -3
  123. package/{chunk-ZEKUFJLW.js → chunk-WVOZ35E4.js} +7 -7
  124. package/{chunk-B5SV4H3J.js → chunk-XDNXKFWF.js} +4 -4
  125. package/{chunk-4Q6HQORG.js → chunk-XLN2GD6Z.js} +4 -4
  126. package/{chunk-HBRDSQ3M.js → chunk-XNEDFWT4.js} +2 -2
  127. package/{chunk-6CKUO32A.js → chunk-Y22P6ASC.js} +11 -8
  128. package/{chunk-SRCCSTIM.js → chunk-Y3DOUQQQ.js} +4 -4
  129. package/{chunk-6WZVM33D.js → chunk-Y5EBOURK.js} +3 -3
  130. package/{chunk-6OVNSQHN.js → chunk-YLAHYLDQ.js} +5 -0
  131. package/{chunk-T6VROBY7.js → chunk-YTEY27GN.js} +2 -2
  132. package/{chunk-5ZUOVCKT.js → chunk-YUZ2DAIH.js} +3 -1
  133. package/{chunk-IUTUWIKE.js → chunk-ZCVBIIUE.js} +4 -4
  134. package/{chunk-VM72HKW2.js → chunk-ZCZLTJEW.js} +9 -36
  135. package/{cliAgentConfigHelpers-U5OAVAKQ.js → cliAgentConfigHelpers-6OFDHJFT.js} +8 -8
  136. package/{cliAuthorityBrokerClient-S42VMGB6.js → cliAuthorityBrokerClient-SFPC3WVK.js} +1 -1
  137. package/{cliLocalAgentRecordReader-HVZAQCUD.js → cliLocalAgentRecordReader-FHIMCBUK.js} +52 -45
  138. package/{commandRegistry-TME7INFU.js → commandRegistry-OKIWAJIS.js} +101 -93
  139. package/{contentThunks-U6OC4R2N.js → contentThunks-VF2DCU46.js} +33 -32
  140. package/{cooldownCommands-U7XSRVJP.js → cooldownCommands-QL6DWGVU.js} +1 -1
  141. package/{createAgentAutomationAction-IP4LFN3W.js → createAgentAutomationAction-BGET7Q6K.js} +34 -33
  142. package/{createDialogAction-IAGQJ3LH.js → createDialogAction-XYDQZETK.js} +34 -33
  143. package/{createPageAction-AZ3UIFKA.js → createPageAction-74S5RO7U.js} +38 -37
  144. package/{db-M7FU2GNK.js → db-6NRZLEW2.js} +1 -1
  145. package/{dbSlice-DKKMJJYY.js → dbSlice-FI7VNDR5.js} +13 -13
  146. package/{deleteFile-TQSONMVU.js → deleteFile-GD62MPZW.js} +8 -8
  147. package/{dialogCommands-PCDRMBWG.js → dialogCommands-Y6DHZUAM.js} +56 -54
  148. package/{dialogNotifyCommand-O35MWMOS.js → dialogNotifyCommand-MKXL4NGL.js} +10 -10
  149. package/{dialogSlice-QAKYN4DE.js → dialogSlice-XAUKSWZ4.js} +32 -31
  150. package/{dialogUsageCommand-2SSLTXKO.js → dialogUsageCommand-BZPKR3DW.js} +5 -5
  151. package/{docCreateCommands-CFQFZOAD.js → docCreateCommands-PHDFOQBM.js} +51 -48
  152. package/{docDeleteCommands-5CPNTIIS.js → docDeleteCommands-OSHJM67Y.js} +53 -50
  153. package/{docReadCommands-XQILYSAJ.js → docReadCommands-E6QYCFMS.js} +51 -48
  154. package/{docStore-GIVRT7TQ.js → docStore-ZZT2BEBU.js} +15 -15
  155. package/{docUpdateCommands-VETKSUDD.js → docUpdateCommands-DHIOPK2C.js} +51 -48
  156. package/fetchMessages-TQEUZD7H.js +1 -1
  157. package/{getPricing-LF5C4XSI.js → getPricing-RNRITFOP.js} +4 -4
  158. package/{handleSendMessageAction-HKIW4ZNO.js → handleSendMessageAction-ARUU6CNF.js} +71 -70
  159. package/{hostCredentialCreate-6VDJFNDO.js → hostCredentialCreate-SNQT73H4.js} +103 -104
  160. package/index.js +8 -8
  161. package/{localDialogRead-AV2VKKPG.js → localDialogRead-3T2KMCRC.js} +1 -1
  162. package/{localRuntimeAdapter-BQ4F5PZV.js → localRuntimeAdapter-MHI6Y2IZ.js} +112 -111
  163. package/{localRuntimeAuthority-WCNA4A3G.js → localRuntimeAuthority-7DKIT7UH.js} +2 -2
  164. package/{localRuntimeDb-CRNIBOOM.js → localRuntimeDb-5WZ4RJJO.js} +1 -1
  165. package/{machineCommands-K6XIGOAD.js → machineCommands-3O6Y27R4.js} +229 -321
  166. package/{machineWsRunDispatch-4OO7Z6UM.js → machineWsRunDispatch-5PFLR5XC.js} +101 -102
  167. package/markdownToSlate-KIYM7B3P.js +8 -0
  168. package/{mcpLocalAuthorizeCommand-ZP6ESAGE.js → mcpLocalAuthorizeCommand-BQCQ2KRJ.js} +15 -15
  169. package/{memberThunks-PBJPZ2JU.js → memberThunks-TU6A6OBV.js} +16 -16
  170. package/{models-H5NNZRLH.js → models-CINY5UZR.js} +2 -2
  171. package/package.json +1 -1
  172. package/{projectArchive-G7AOQPRW.js → projectArchive-X2EVXU3N.js} +40 -39
  173. package/{providerPresetApply-OPBCAONX.js → providerPresetApply-HUWNV2NI.js} +6 -6
  174. package/{providerRegistry-J2HCVTHE.js → providerRegistry-7FWKDKZJ.js} +6 -6
  175. package/{read-JEGPITEW.js → read-QAHEQID5.js} +8 -8
  176. package/{readDocTool-TE3XIU4Y.js → readDocTool-KG5DP6EM.js} +1 -1
  177. package/{readlineWorkspace-SOW5QUGZ.js → readlineWorkspace-SO3APHVP.js} +3300 -1518
  178. package/rememberExplicit-CPAPONSI.js +15 -0
  179. package/{removeDialogAgentAction-CX3OAH4Y.js → removeDialogAgentAction-QZCCVK2G.js} +19 -19
  180. package/{runAgentClientLoop-HQJPDFGQ.js → runAgentClientLoop-FLHHCOVH.js} +77 -77
  181. package/{runtimeDoctorCommands-GUH2YGMH.js → runtimeDoctorCommands-DN3I52C6.js} +8 -8
  182. package/{secretCommands-NJXFVHZU.js → secretCommands-36BCE3UE.js} +2 -2
  183. package/{setDialogExtraReferencesAction-CGM67EEQ.js → setDialogExtraReferencesAction-PDPTYSEW.js} +15 -15
  184. package/{setPrimaryDialogAgentAction-3ABWPPXR.js → setPrimaryDialogAgentAction-DOUIPR66.js} +19 -19
  185. package/{settingThunks-AY76OHYX.js → settingThunks-MHGGP6UE.js} +23 -23
  186. package/{spaceCommands-G63QGYQO.js → spaceCommands-JH7UYE3K.js} +54 -51
  187. package/{streamAgentChatTurn-E3XH2KFD.js → streamAgentChatTurn-VDDA2TX6.js} +118 -118
  188. package/{switchDialogAgentAction-G6EZRKCQ.js → switchDialogAgentAction-7USK3DAP.js} +17 -17
  189. package/{tableCommands-JI75ZHDI.js → tableCommands-UONBFC7L.js} +6 -6
  190. package/{toolApiClient-62UUPDUA.js → toolApiClient-53YMJ2G6.js} +7 -3
  191. package/{tools-7RSX22FT.js → tools-MIOCXKMG.js} +59 -60
  192. package/{tuiRestart-KAAA7TND.js → tuiRestart-ET3QISZ5.js} +10 -10
  193. package/{tuiSummaryLlmCaller-BVNHMWLR.js → tuiSummaryLlmCaller-MSINBP3M.js} +15 -14
  194. package/{updateCommands-ASK5XYPH.js → updateCommands-5OYND6EF.js} +3 -3
  195. package/{updateDialogTitleAction-SEWV252V.js → updateDialogTitleAction-2L4CC4YO.js} +35 -34
  196. package/{usageCommand-JVT5J3DC.js → usageCommand-JTKDAG6I.js} +2 -2
  197. package/{usageRebuildCommand-IZYYUTEW.js → usageRebuildCommand-4TFZCKXM.js} +3 -3
  198. package/{windowsSelfUpdate-BSDIS2J5.js → windowsSelfUpdate-HIYNL3VR.js} +2 -2
  199. package/{workContext-MM3P5GP5.js → workContext-Y3ADAPZU.js} +2 -1
  200. package/{workloadLifecycle-YIZ7KLUP.js → workloadLifecycle-ZCSQCHG3.js} +6 -6
  201. package/chunk-TUSTONB3.js +0 -81
  202. package/chunk-XBAEM4RI.js +0 -272
  203. package/{accountResolver-EK2S4PWF.js → accountResolver-QETKNC7T.js} +3 -3
  204. package/{chunk-W6RFEDN4.js → chunk-AETZ7AD6.js} +3 -3
  205. package/{chunk-VMJVAJ6W.js → chunk-TB5KTLNB.js} +3 -3
  206. /package/{chunk-FJ23FZXF.js → chunk-VIYVRPMJ.js} +0 -0
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-X4O7FJF5.js";
11
11
  import {
12
12
  getModelContextWindow
13
- } from "./chunk-L32W3PRP.js";
13
+ } from "./chunk-RH44TIHX.js";
14
14
  import {
15
15
  isRecord
16
16
  } from "./chunk-KUG52IAP.js";
@@ -21,7 +21,7 @@ import {
21
21
  PLATFORM_HOSTED_KIMI_K3_MODEL,
22
22
  isFireworksKimiModel,
23
23
  isNoloHostedProvider
24
- } from "./chunk-OBSEKCVK.js";
24
+ } from "./chunk-U4VSBDO5.js";
25
25
  import {
26
26
  asTrimmedLowercaseString
27
27
  } from "./chunk-QSJ3HFEF.js";
@@ -1,5 +1,23 @@
1
1
  // packages/agent-runtime/mcpConnectionSpecs.ts
2
2
  var MCP_TOOL_NAMES = Object.freeze(["listMcpConnections", "listMcpTools", "callMcpTool"]);
3
+ var MCP_PRESET_SPECS = Object.freeze([
4
+ Object.freeze({
5
+ id: "zoho-mail",
6
+ title: "Zoho Mail MCP",
7
+ summary: "\u63A5\u5165 Zoho \u5B98\u65B9\u4E3A\u4F60\u8D26\u53F7\u751F\u6210\u7684\u4E13\u5C5E MCP HTTPS \u670D\u52A1\u5730\u5740\uFF0C\u5728\u53D7\u63A7\u5DE5\u5177\u767D\u540D\u5355\u4E0E\u786E\u8BA4\u95E8\u4E0B\u8BFB\u53D6\u6216\u68C0\u7D22\u90AE\u4EF6\u3002",
8
+ defaultAuthKind: "none",
9
+ endpointPlaceholder: "https://mail.zoho.com/mcp/...",
10
+ note: "Zoho \u751F\u6210\u7684\u4E13\u5C5E Server URL \u5185\u542B\u8BBF\u95EE\u5BC6\u94A5\uFF0C\u4FDD\u5B58\u65F6\u5C06\u76F4\u63A5\u52A0\u5BC6\u5B58\u5165\u53D7\u63A7\u5BC6\u6587\u5E93\uFF0C\u4E0D\u4F1A\u4EE5\u660E\u6587\u56DE\u663E\u3002"
11
+ }),
12
+ Object.freeze({
13
+ id: "home-assistant",
14
+ title: "Home Assistant MCP",
15
+ summary: "\u63A5\u5165\u516C\u7F51 HTTPS \u53EF\u8FBE\u7684 Home Assistant \u5B98\u65B9 MCP Server\uFF08\u5982 /api/mcp\uFF09\uFF0C\u7ECF\u6BCF\u6B21\u8C03\u7528\u786E\u8BA4\u540E\u67E5\u770B\u6216\u63A7\u5236\u5B9E\u4F53\u3002",
16
+ defaultAuthKind: "bearer",
17
+ endpointPlaceholder: "https://ha.example.com/api/mcp",
18
+ note: "\u670D\u52A1\u7AEF\u8FDE\u63A5\u4EC5\u8BBF\u95EE\u516C\u7F51 HTTPS\uFF08\u81EA\u52A8\u62E6\u622A\u5185\u7F51/\u79C1\u7F51\u5730\u5740\uFF09\uFF0C\u9700\u63D0\u4F9B\u957F\u671F\u8BBF\u95EE\u4EE4\u724C\uFF08Bearer Token\uFF09\u3002"
19
+ })
20
+ ]);
3
21
  var failure = (code) => ({ ok: false, error: { code } });
4
22
  function sameMcpPlacement(a, b) {
5
23
  return a.kind === b.kind && (a.kind !== "machine" || b.kind === "machine" && a.machineId === b.machineId);
@@ -13,7 +31,13 @@ var idSchema = { ...text(128), pattern: "^[A-Za-z0-9][A-Za-z0-9_.:-]{0,127}$" };
13
31
  var refSchema = { ...text(128), pattern: "^[A-Za-z0-9][A-Za-z0-9_:-]{0,127}$" };
14
32
  var revisionSchema = { type: "integer", minimum: 1, maximum: Number.MAX_SAFE_INTEGER };
15
33
  var objectSchema = (properties, required = Object.keys(properties)) => ({ type: "object", properties, required, additionalProperties: false });
16
- var placements = { type: "object", required: ["kind"], properties: { kind: { const: "local" } }, additionalProperties: false };
34
+ var placements = {
35
+ oneOf: [
36
+ { type: "object", required: ["kind"], properties: { kind: { const: "local" } }, additionalProperties: false },
37
+ { type: "object", required: ["kind"], properties: { kind: { const: "server" } }, additionalProperties: false },
38
+ { type: "object", required: ["kind", "machineId"], properties: { kind: { const: "machine" }, machineId: idSchema }, additionalProperties: false }
39
+ ]
40
+ };
17
41
  var MCP_CONNECTION_WRITE_SCHEMA = {
18
42
  type: "object",
19
43
  required: ["schemaVersion", "label", "enabled", "placement", "transport", "auth", "allowedToolNames", "readPolicies"],
@@ -21,7 +45,7 @@ var MCP_CONNECTION_WRITE_SCHEMA = {
21
45
  schemaVersion: { const: 1 },
22
46
  label: { type: "string", minLength: 1, maxLength: 160, pattern: "^[^:/\\\\\\r\\n]+$" },
23
47
  enabled: { type: "boolean" },
24
- presetId: { enum: ["zoho-mail"] },
48
+ presetId: { enum: ["zoho-mail", "home-assistant"] },
25
49
  placement: placements,
26
50
  allowedToolNames: { type: "array", maxItems: 256, items: text(160) },
27
51
  readPolicies: { type: "array", maxItems: 256, items: { type: "object", required: ["toolName", "arguments"], properties: { toolName: text(160), arguments: { type: "object", maxProperties: 128, additionalProperties: { type: "array", maxItems: 256 } } }, additionalProperties: false } },
@@ -110,6 +134,7 @@ function parseMcpListToolsInput(value) {
110
134
  function parseMcpCallToolInput(value) {
111
135
  return parse(MCP_CALL_TOOL_INPUT_SCHEMA, value);
112
136
  }
137
+ var MCP_LIST_CONNECTIONS_INPUT_SCHEMA = freezeSchema(objectSchema({}, []));
113
138
  function toMcpConnectionSummary(connection) {
114
139
  return {
115
140
  schemaVersion: 1,
@@ -118,6 +143,8 @@ function toMcpConnectionSummary(connection) {
118
143
  enabled: connection.enabled,
119
144
  revision: connection.revision,
120
145
  ...connection.presetId ? { presetId: connection.presetId } : {},
146
+ allowedToolNames: [...connection.allowedToolNames],
147
+ readPolicies: structuredClone(connection.readPolicies),
121
148
  placement: connection.placement.kind === "machine" ? { kind: "machine", machineId: connection.placement.machineId } : { kind: connection.placement.kind },
122
149
  transportKind: connection.transport.kind,
123
150
  authKind: connection.auth.kind,
@@ -134,5 +161,6 @@ export {
134
161
  parseMcpConnectionWrite,
135
162
  parseMcpListToolsInput,
136
163
  parseMcpCallToolInput,
164
+ MCP_LIST_CONNECTIONS_INPUT_SCHEMA,
137
165
  toMcpConnectionSummary
138
166
  };
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-PVFYPUIM.js";
8
8
  import {
9
9
  isWorkContextState
10
- } from "./chunk-6WOLPIPY.js";
10
+ } from "./chunk-C5A54QS7.js";
11
11
  import {
12
12
  loadMemoryVNextCatalog
13
13
  } from "./chunk-324FWHUA.js";
@@ -1,28 +1,28 @@
1
1
  import {
2
2
  applyPublicAgentCatalogOverride
3
- } from "./chunk-N2JROHD3.js";
3
+ } from "./chunk-4UK6UBXF.js";
4
4
  import {
5
5
  applyBuiltinAgentRuntimeOverride,
6
6
  resolveBuiltinPlatformAgentConfig
7
7
  } from "./chunk-JBWXPACD.js";
8
8
  import {
9
9
  buildLocalAgentLookupKeys
10
- } from "./chunk-PROOOQZ3.js";
11
- import {
12
- LOCAL_CODEX_AGENT_ID,
13
- LOCAL_CODEX_AGENT_KEY
14
- } from "./chunk-BR3GT6MR.js";
10
+ } from "./chunk-VCU5GV42.js";
15
11
  import {
16
12
  localDialogMessageRecordToRuntimeMessage,
17
13
  orderDialogHistory
18
- } from "./chunk-TRHJ4NJB.js";
14
+ } from "./chunk-RGUWOMXU.js";
19
15
  import {
20
16
  resolveAgentRuntimeConfigFromRecord
21
- } from "./chunk-KZPEGO6D.js";
17
+ } from "./chunk-SBRSXY67.js";
22
18
  import {
23
19
  dialogMessagePrefix,
24
20
  dialogMessageRange
25
21
  } from "./chunk-OJKUU3LP.js";
22
+ import {
23
+ LOCAL_CODEX_AGENT_ID,
24
+ LOCAL_CODEX_AGENT_KEY
25
+ } from "./chunk-BR3GT6MR.js";
26
26
 
27
27
  // packages/cli/client/cliLocalAgentRecordReader.ts
28
28
  function resolveBuiltinLocalCliAgentConfig(agentRef, userId) {
@@ -5,7 +5,7 @@ import {
5
5
  inlineImageUrlsForCustomProvider,
6
6
  prepareTools,
7
7
  shouldInlineImageUrlsForAgent
8
- } from "./chunk-CVJRVBJL.js";
8
+ } from "./chunk-J2XZZXIH.js";
9
9
  import {
10
10
  CONFIRMATION_INPUT_KEYS,
11
11
  INVALID_TOOL_ARGS_REPLACEMENT,
@@ -14,11 +14,11 @@ import {
14
14
  performFetchRequest,
15
15
  sanitizeOutboundMessages,
16
16
  stripModelToolArgs
17
- } from "./chunk-3FBAVU2Y.js";
17
+ } from "./chunk-3UNAGTBW.js";
18
18
  import {
19
19
  findToolExecutor,
20
20
  toolDefinitionsByName
21
- } from "./chunk-BGGV6B5O.js";
21
+ } from "./chunk-SBRJOYND.js";
22
22
  import {
23
23
  createSSEParser,
24
24
  createToolRunId,
@@ -27,10 +27,7 @@ import {
27
27
  toolRunSetPending,
28
28
  toolRunStarted,
29
29
  toolRunSucceeded
30
- } from "./chunk-VREG6ANQ.js";
31
- import {
32
- getCurrentSpaceId
33
- } from "./chunk-IUTUWIKE.js";
30
+ } from "./chunk-DPAIQLAL.js";
34
31
  import {
35
32
  addToolMessage,
36
33
  messageStreamEnd,
@@ -38,10 +35,16 @@ import {
38
35
  toast,
39
36
  toolResultNeedsUserConfirmation,
40
37
  updateToolMessage
41
- } from "./chunk-B7DE5XJW.js";
38
+ } from "./chunk-ODGSLWLO.js";
42
39
  import {
43
40
  streamAgentChatTurn
44
- } from "./chunk-IJTXNLQE.js";
41
+ } from "./chunk-QYNABNNQ.js";
42
+ import {
43
+ getCurrentSpaceId
44
+ } from "./chunk-ZCVBIIUE.js";
45
+ import {
46
+ write
47
+ } from "./chunk-6MQWGA5F.js";
45
48
  import {
46
49
  addActiveController,
47
50
  getActiveDialogKey,
@@ -53,13 +56,10 @@ import {
53
56
  } from "./chunk-RD3QLZQV.js";
54
57
  import {
55
58
  selectCurrentServer
56
- } from "./chunk-O6IPRAVV.js";
57
- import {
58
- write
59
- } from "./chunk-RM4UMFY4.js";
59
+ } from "./chunk-CJTB3OYB.js";
60
60
  import {
61
61
  createAsyncThunk
62
- } from "./chunk-7TTMMOKH.js";
62
+ } from "./chunk-247AAJRK.js";
63
63
  import {
64
64
  selectIdentityToken
65
65
  } from "./chunk-PXYBUFDB.js";
@@ -70,7 +70,7 @@ import {
70
70
  projectUserPartForModel,
71
71
  resolveOutboundDiagnosticSink,
72
72
  resolveOutboundWire
73
- } from "./chunk-5QZSEQSK.js";
73
+ } from "./chunk-ONFFUQYM.js";
74
74
  import {
75
75
  accumulateToolCallDelta,
76
76
  createThinkParserState,
@@ -82,7 +82,7 @@ import {
82
82
  } from "./chunk-56GBUMO5.js";
83
83
  import {
84
84
  normalizeChatCompletionsBodyForProvider
85
- } from "./chunk-EEOOBRA7.js";
85
+ } from "./chunk-F4MCAOWN.js";
86
86
  import {
87
87
  classifyApiError,
88
88
  classifyGenerationError,
@@ -96,16 +96,13 @@ import {
96
96
  } from "./chunk-WFGNWWJI.js";
97
97
  import {
98
98
  EMPTY_ASSISTANT_REPAIR_PROMPT
99
- } from "./chunk-DNZ4JJ7C.js";
99
+ } from "./chunk-4F7SWSWO.js";
100
100
  import {
101
101
  getModelInfo
102
- } from "./chunk-L32W3PRP.js";
102
+ } from "./chunk-RH44TIHX.js";
103
103
  import {
104
104
  isAbortError
105
105
  } from "./chunk-7DPNBQSV.js";
106
- import {
107
- extractCustomId
108
- } from "./chunk-M2EJHDJP.js";
109
106
  import {
110
107
  toTrimmedString
111
108
  } from "./chunk-SYTHYBMI.js";
@@ -113,6 +110,9 @@ import {
113
110
  createDialogMessageKeyAndId,
114
111
  dialogMessageKey
115
112
  } from "./chunk-OJKUU3LP.js";
113
+ import {
114
+ extractCustomId
115
+ } from "./chunk-M2EJHDJP.js";
116
116
  import {
117
117
  getPublicImageAgentMode
118
118
  } from "./chunk-VIDPVFP3.js";
@@ -124,7 +124,7 @@ import {
124
124
  } from "./chunk-3EUW3WEO.js";
125
125
  import {
126
126
  getApiEndpoint
127
- } from "./chunk-CD3RU7XL.js";
127
+ } from "./chunk-OJRTTERA.js";
128
128
  import {
129
129
  isRecord
130
130
  } from "./chunk-KUG52IAP.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  WORKFLOW_GUIDANCE_SKILL_SLUGS
3
- } from "./chunk-EBKHA63G.js";
3
+ } from "./chunk-RIMFTQMC.js";
4
4
 
5
5
  // packages/ai/policy/types.ts
6
6
  var DEFAULT_USER_PREFERENCE_PROFILE = {
@@ -1,18 +1,18 @@
1
- import {
2
- resolveRuntimeAuthToken,
3
- resolveRuntimeServerUrl
4
- } from "./chunk-2X7WFDT6.js";
5
1
  import {
6
2
  isAgentRunTerminalStatus,
7
3
  normalizeRunTitle,
8
4
  shortAgentKey
9
- } from "./chunk-OOJNQK6V.js";
5
+ } from "./chunk-S25VJYXV.js";
10
6
  import {
11
7
  findPowerShellExecutable
12
- } from "./chunk-VMJVAJ6W.js";
8
+ } from "./chunk-TB5KTLNB.js";
13
9
  import {
14
10
  AUTH_ERROR_PATTERNS
15
11
  } from "./chunk-EWQ3HGNZ.js";
12
+ import {
13
+ resolveRuntimeAuthToken,
14
+ resolveRuntimeServerUrl
15
+ } from "./chunk-4FE3IWRE.js";
16
16
  import {
17
17
  AGENT_RUN_PROTOCOL,
18
18
  HOST_RUNTIME_CONTENT_IDENTITY,
@@ -2221,6 +2221,42 @@ function listRunRecords(deps = {}) {
2221
2221
  (a, b) => new Date(b.startedAt).getTime() - new Date(a.startedAt).getTime()
2222
2222
  );
2223
2223
  }
2224
+ function listRecentRunRecords(deps = {}) {
2225
+ const limit = deps.limit ?? 400;
2226
+ if (!Number.isFinite(limit) || limit <= 0) return [];
2227
+ const fs = deps.fs ?? nodeFs2;
2228
+ const dir = resolveRunsDir(deps.env, deps.homedir);
2229
+ let entries = [];
2230
+ try {
2231
+ entries = fs.readdirSync(dir);
2232
+ } catch {
2233
+ return [];
2234
+ }
2235
+ const timestampedRuns = [];
2236
+ const customRuns = [];
2237
+ for (const entry of entries) {
2238
+ if (!entry.endsWith(".json") || entry.startsWith("acked-") || entry.startsWith("busy-ack-") || entry.endsWith(".isolation.json") || entry.includes(".result.")) {
2239
+ continue;
2240
+ }
2241
+ if (entry.startsWith("run-")) {
2242
+ timestampedRuns.push(entry);
2243
+ } else {
2244
+ customRuns.push(entry);
2245
+ }
2246
+ }
2247
+ timestampedRuns.sort((a, b) => a < b ? 1 : a > b ? -1 : 0);
2248
+ const candidates = timestampedRuns.length >= limit ? timestampedRuns : [...timestampedRuns, ...customRuns.sort((a, b) => a < b ? 1 : a > b ? -1 : 0)];
2249
+ const records = [];
2250
+ for (const entry of candidates) {
2251
+ if (records.length >= limit) break;
2252
+ const runId = entry.slice(0, -".json".length);
2253
+ const record = readRunRecord(runId, deps);
2254
+ if (record) records.push(record);
2255
+ }
2256
+ return records.sort(
2257
+ (a, b) => new Date(b.startedAt).getTime() - new Date(a.startedAt).getTime()
2258
+ );
2259
+ }
2224
2260
  async function listRunRecordsAsync(deps = {}) {
2225
2261
  const dir = resolveRunsDir(deps.env, deps.homedir);
2226
2262
  let entries;
@@ -3981,6 +4017,7 @@ export {
3981
4017
  readRunRecord,
3982
4018
  backfillRunRecordParentDialog,
3983
4019
  listRunRecords,
4020
+ listRecentRunRecords,
3984
4021
  listRunRecordsAsync,
3985
4022
  findRunRecordByPid,
3986
4023
  findRunRecord,
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  selectCurrentServer,
3
3
  selectRemoteServers
4
- } from "./chunk-O6IPRAVV.js";
4
+ } from "./chunk-CJTB3OYB.js";
5
5
  import {
6
6
  noloDeleteRequest,
7
7
  noloWriteRequest
8
- } from "./chunk-7TTMMOKH.js";
8
+ } from "./chunk-247AAJRK.js";
9
9
  import {
10
10
  normalizeTimeFields
11
- } from "./chunk-ULLHVDTZ.js";
11
+ } from "./chunk-BH7CEVOH.js";
12
12
  import {
13
13
  selectIdentityUser,
14
14
  selectIdentityUserId
@@ -1,16 +1,10 @@
1
1
  import {
2
2
  resolveDefaultReasoningEffort
3
- } from "./chunk-5ZUOVCKT.js";
4
- import {
5
- buildRestorePatch
6
- } from "./chunk-BV3FLP2L.js";
3
+ } from "./chunk-YUZ2DAIH.js";
7
4
  import {
8
5
  buildLocalAgentLookupKeys,
9
6
  shouldReadAgentKeyRemotely
10
- } from "./chunk-PROOOQZ3.js";
11
- import {
12
- resolveCliAgentKeyInput
13
- } from "./chunk-BR3GT6MR.js";
7
+ } from "./chunk-VCU5GV42.js";
14
8
  import {
15
9
  createHostCredentialBrokerChain,
16
10
  createStrictHostCredentialBroker
@@ -20,7 +14,7 @@ import {
20
14
  formatInvalidAgentSkillModeMessage,
21
15
  formatInvalidAgentSkillModesFieldMessage,
22
16
  isAgentSkillModesFieldShapeValid
23
- } from "./chunk-MM73SP4K.js";
17
+ } from "./chunk-DOK7GDRU.js";
24
18
  import {
25
19
  buildAgentApiKeyCredentialRef,
26
20
  migrateAgentSecrets
@@ -29,9 +23,15 @@ import {
29
23
  assertCredentialRef,
30
24
  createFileCredentialBroker
31
25
  } from "./chunk-OQHIVPG4.js";
26
+ import {
27
+ buildRestorePatch
28
+ } from "./chunk-BV3FLP2L.js";
32
29
  import {
33
30
  createAgentKey
34
31
  } from "./chunk-SYTHYBMI.js";
32
+ import {
33
+ resolveCliAgentKeyInput
34
+ } from "./chunk-BR3GT6MR.js";
35
35
  import {
36
36
  parseUserIdFromAuthToken,
37
37
  readOption,
@@ -766,7 +766,7 @@ async function buildCreatedAgentRecord(args) {
766
766
  const resolvedAgentInput = resolveCliAgentKeyInput(args.parsed.agentInput);
767
767
  const agentKey = resolvedAgentInput.startsWith("agent-") ? resolvedAgentInput : createAgentKey.private(userId || "local", resolvedAgentInput);
768
768
  if (args.parsed.presetId) {
769
- const { resolveProviderPresetFields } = await import("./providerPresetApply-OPBCAONX.js");
769
+ const { resolveProviderPresetFields } = await import("./providerPresetApply-HUWNV2NI.js");
770
770
  const fields = resolveProviderPresetFields(args.parsed.presetId);
771
771
  if (fields.kind === "manual") {
772
772
  throw new Error(
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  toolRegistry
3
- } from "./chunk-BGGV6B5O.js";
3
+ } from "./chunk-SBRJOYND.js";
4
4
  import {
5
5
  runtime_default
6
- } from "./chunk-B7DE5XJW.js";
6
+ } from "./chunk-ODGSLWLO.js";
7
7
  import {
8
8
  canonicalizeToolNames
9
- } from "./chunk-6OVNSQHN.js";
9
+ } from "./chunk-YLAHYLDQ.js";
10
10
  import {
11
11
  isRecord
12
12
  } from "./chunk-KUG52IAP.js";
13
13
  import {
14
14
  isNoloHostedProvider
15
- } from "./chunk-OBSEKCVK.js";
15
+ } from "./chunk-U4VSBDO5.js";
16
16
  import {
17
17
  asTrimmedLowercaseString
18
18
  } from "./chunk-QSJ3HFEF.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-OQHIVPG4.js";
4
4
  import {
5
5
  t
6
- } from "./chunk-S2MHR4PU.js";
6
+ } from "./chunk-OGZE6BZG.js";
7
7
 
8
8
  // packages/core/secretsStore.ts
9
9
  import {
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  deriveStateResident
3
- } from "./chunk-VSRISJXZ.js";
4
- import {
5
- resolveMachineId
6
- } from "./chunk-S73EPYNC.js";
3
+ } from "./chunk-GAHJLSDO.js";
7
4
  import {
8
5
  _appendRetiredStateBatch,
9
6
  loadMemoryVNextCatalog
10
7
  } from "./chunk-324FWHUA.js";
8
+ import {
9
+ resolveMachineId
10
+ } from "./chunk-S73EPYNC.js";
11
11
  import {
12
12
  gBase64
13
- } from "./chunk-X7IA2B7R.js";
13
+ } from "./chunk-WBSJAIZP.js";
14
14
  import {
15
15
  getDefaultCliLocalRuntimeDb
16
- } from "./chunk-Y2MF4DCJ.js";
16
+ } from "./chunk-LELADM5Q.js";
17
17
  import {
18
18
  createMemoryKey,
19
19
  createMemoryOwnerIndexKey,
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-R5GO3YZP.js";
8
8
  import {
9
9
  getCliLocale
10
- } from "./chunk-S2MHR4PU.js";
10
+ } from "./chunk-OGZE6BZG.js";
11
11
  import {
12
12
  ANTIGRAVITY_AUTH_URL,
13
13
  ANTIGRAVITY_CALLBACK_PATH,
@@ -21,19 +21,19 @@ import {
21
21
  getAntigravityUserAgent,
22
22
  normalizeAntigravityTokenPayload,
23
23
  refreshAntigravityToken
24
- } from "./chunk-6CKUO32A.js";
24
+ } from "./chunk-Y22P6ASC.js";
25
25
  import {
26
26
  toErrorMessage
27
27
  } from "./chunk-HNMXYYJR.js";
28
28
  import {
29
29
  asTrimmedString
30
30
  } from "./chunk-3EUW3WEO.js";
31
- import {
32
- isRecord
33
- } from "./chunk-KUG52IAP.js";
34
31
  import {
35
32
  asOptionalFiniteNumber
36
33
  } from "./chunk-WWC7I6TA.js";
34
+ import {
35
+ isRecord
36
+ } from "./chunk-KUG52IAP.js";
37
37
 
38
38
  // packages/cli/tui/wtAmbiguousWidth.ts
39
39
  import fs from "node:fs";
@@ -680,6 +680,7 @@ function buildSourceMapping(rawLine, styledLine, prefixCharCount) {
680
680
  while (contentStart < rawLine.length && rawLine[contentStart] === " ") contentStart++;
681
681
  lineToParse = rawLine.slice(contentStart);
682
682
  }
683
+ const visibleBody = stripAnsi2(styledLine.slice(prefixCharCount));
683
684
  const INLINE_RE = /(\[([^\]]+)\]\(([^)\s]+)\)|`([^`]+)`|\*\*(.+?)\*\*|(?<!\*)\*([^*]+?)\*(?!\*)|~~([^~]+?)~~)/g;
684
685
  const mapping = [];
685
686
  let lastIdx = 0;
@@ -693,18 +694,37 @@ function buildSourceMapping(rawLine, styledLine, prefixCharCount) {
693
694
  if (match[2] !== void 0 && match[3] !== void 0) {
694
695
  const linkText = match[2];
695
696
  const linkUrl = match[3];
697
+ const cleanText = linkText.replace(/[\u0000-\u001f\u007f]/g, "");
698
+ const cleanUrl = linkUrl.replace(/[\u0000-\u001f\u007f]/g, "");
699
+ const cursor = mapping.length;
696
700
  const textOffset = contentStart + match.index + 1;
697
- for (let c = 0; c < linkText.length; c++) {
701
+ for (let c = 0; c < cleanText.length; c++) {
698
702
  mapping.push(textOffset + c);
699
703
  }
700
- const parenOffset = textOffset + linkText.length;
701
- mapping.push(parenOffset);
702
- mapping.push(parenOffset + 1);
703
- const urlOffset = parenOffset + 2;
704
- for (let c = 0; c < linkUrl.length; c++) {
705
- mapping.push(urlOffset + c);
704
+ if (visibleBody.startsWith(`${cleanText} \u2197`, cursor)) {
705
+ const closeParenOffset = contentStart + match.index + fullMatch.length - 1;
706
+ mapping.push(closeParenOffset);
707
+ mapping.push(closeParenOffset);
708
+ } else if (visibleBody.startsWith(`${cleanText} (${cleanUrl})`, cursor)) {
709
+ const parenOffset = textOffset + linkText.length;
710
+ mapping.push(parenOffset);
711
+ mapping.push(parenOffset + 1);
712
+ const urlOffset = parenOffset + 2;
713
+ for (let c = 0; c < cleanUrl.length; c++) {
714
+ mapping.push(urlOffset + c);
715
+ }
716
+ mapping.push(urlOffset + linkUrl.length);
717
+ } else if (visibleBody.startsWith(cleanText, cursor) && cleanText.trim() === cleanUrl.trim()) {
718
+ } else if (linkText.trim() !== linkUrl.trim()) {
719
+ const parenOffset = textOffset + linkText.length;
720
+ mapping.push(parenOffset);
721
+ mapping.push(parenOffset + 1);
722
+ const urlOffset = parenOffset + 2;
723
+ for (let c = 0; c < linkUrl.length; c++) {
724
+ mapping.push(urlOffset + c);
725
+ }
726
+ mapping.push(urlOffset + linkUrl.length);
706
727
  }
707
- mapping.push(urlOffset + linkUrl.length);
708
728
  } else if (match[4] !== void 0) {
709
729
  const codeText = match[4];
710
730
  const codeOffset = contentStart + match.index + 1;
@@ -2411,6 +2431,7 @@ export {
2411
2431
  ANSI_ESCAPE_REGEX,
2412
2432
  stripAnsi2 as stripAnsi,
2413
2433
  applyTerminalOutputToText,
2434
+ resolveAmbiguousWidth,
2414
2435
  resolveBoxCharset,
2415
2436
  boxGlyphs,
2416
2437
  displayWidth,