harnesstap 1.3.2 → 1.6.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/README.md +4 -0
  2. package/dist/apply-FTAIL3X3.js +50 -0
  3. package/dist/{approve-L7IFSYBO.js → approve-R6AWQB3I.js} +12 -16
  4. package/dist/{approve-L7IFSYBO.js.map → approve-R6AWQB3I.js.map} +1 -1
  5. package/dist/{audit-PBJDK7A4.js → audit-2HNKFPSU.js} +26 -39
  6. package/dist/{audit-PBJDK7A4.js.map → audit-2HNKFPSU.js.map} +1 -1
  7. package/dist/{auth-OM73RLNS.js → auth-C54KRLNF.js} +17 -21
  8. package/dist/{auth-OM73RLNS.js.map → auth-C54KRLNF.js.map} +1 -1
  9. package/dist/bin.js +13 -34
  10. package/dist/bin.js.map +1 -1
  11. package/dist/{chunk-R4PTE774.js → chunk-2XDYQXP2.js} +34 -41
  12. package/dist/chunk-2XDYQXP2.js.map +1 -0
  13. package/dist/{chunk-G5RWVZZ7.js → chunk-3277RVZT.js} +5 -7
  14. package/dist/{chunk-G5RWVZZ7.js.map → chunk-3277RVZT.js.map} +1 -1
  15. package/dist/{chunk-6JMVGKMD.js → chunk-3Q72LZPJ.js} +936 -528
  16. package/dist/chunk-3Q72LZPJ.js.map +1 -0
  17. package/dist/{chunk-U472S6IB.js → chunk-42E2MPES.js} +19 -27
  18. package/dist/chunk-42E2MPES.js.map +1 -0
  19. package/dist/{chunk-CZ4T75PP.js → chunk-5HACBPK2.js} +622 -252
  20. package/dist/chunk-5HACBPK2.js.map +1 -0
  21. package/dist/{chunk-IHW4PCDT.js → chunk-6FXJIKEG.js} +6 -6
  22. package/dist/{chunk-OPVIX7E4.js → chunk-A3TZT4WT.js} +6 -2
  23. package/dist/chunk-A3TZT4WT.js.map +1 -0
  24. package/dist/chunk-BUA7WFI4.js +39327 -0
  25. package/dist/chunk-BUA7WFI4.js.map +1 -0
  26. package/dist/{chunk-IAZNF35S.js → chunk-CBSDMRMY.js} +2 -2
  27. package/dist/{chunk-YVJQ2QDG.js → chunk-CR2TYMKC.js} +65 -55
  28. package/dist/chunk-CR2TYMKC.js.map +1 -0
  29. package/dist/{chunk-VQVUJYYY.js → chunk-CWXCZBJR.js} +76 -6
  30. package/dist/chunk-CWXCZBJR.js.map +1 -0
  31. package/dist/{chunk-AVZOFMJX.js → chunk-D7R577XZ.js} +381 -138
  32. package/dist/chunk-D7R577XZ.js.map +1 -0
  33. package/dist/{chunk-3EGM4IUI.js → chunk-EPXAOEBB.js} +6 -6
  34. package/dist/{chunk-64R32MG2.js → chunk-GZU4LVFF.js} +179 -26
  35. package/dist/chunk-GZU4LVFF.js.map +1 -0
  36. package/dist/chunk-HV3ENT2F.js +61 -0
  37. package/dist/chunk-HV3ENT2F.js.map +1 -0
  38. package/dist/{chunk-XCPWLGPB.js → chunk-K4UDZUJ2.js} +2 -2
  39. package/dist/{chunk-OQ4KBUN2.js → chunk-L6BJCRBU.js} +13 -16
  40. package/dist/chunk-L6BJCRBU.js.map +1 -0
  41. package/dist/{chunk-AFKCNFPP.js → chunk-M6FEDSHY.js} +16 -15
  42. package/dist/chunk-M6FEDSHY.js.map +1 -0
  43. package/dist/chunk-M7PHQ3UC.js +31491 -0
  44. package/dist/chunk-M7PHQ3UC.js.map +1 -0
  45. package/dist/{chunk-FBYAIBHP.js → chunk-MHLAIGIM.js} +2 -2
  46. package/dist/{chunk-ENHDEB7Z.js → chunk-MHMFF6A5.js} +5 -7
  47. package/dist/{chunk-ENHDEB7Z.js.map → chunk-MHMFF6A5.js.map} +1 -1
  48. package/dist/chunk-MKLJBW5N.js +14 -0
  49. package/dist/{chunk-XRXFJTAT.js → chunk-MQCAPCAF.js} +17 -26
  50. package/dist/chunk-MQCAPCAF.js.map +1 -0
  51. package/dist/{chunk-UEHDEADL.js → chunk-MQCH3YZ5.js} +15 -13
  52. package/dist/chunk-MQCH3YZ5.js.map +1 -0
  53. package/dist/chunk-OHZNDV4A.js +1707 -0
  54. package/dist/chunk-OHZNDV4A.js.map +1 -0
  55. package/dist/{chunk-LGWUTV5Q.js → chunk-OWE3OSX6.js} +11 -13
  56. package/dist/{chunk-LGWUTV5Q.js.map → chunk-OWE3OSX6.js.map} +1 -1
  57. package/dist/{chunk-EY4ES5MG.js → chunk-PCNHBMBU.js} +3 -5
  58. package/dist/{chunk-EY4ES5MG.js.map → chunk-PCNHBMBU.js.map} +1 -1
  59. package/dist/{chunk-YRGM7RAD.js → chunk-QGTDQNVV.js} +7 -11
  60. package/dist/{chunk-YRGM7RAD.js.map → chunk-QGTDQNVV.js.map} +1 -1
  61. package/dist/{chunk-BXSS2S4W.js → chunk-R27VZIF6.js} +2 -2
  62. package/dist/{chunk-TQ2NA4Z4.js → chunk-R4NV3Q7G.js} +8 -2
  63. package/dist/chunk-R4NV3Q7G.js.map +1 -0
  64. package/dist/{chunk-FUV7QYBS.js → chunk-R6VFJKZB.js} +86 -319
  65. package/dist/chunk-R6VFJKZB.js.map +1 -0
  66. package/dist/{chunk-QNAIDM6W.js → chunk-RQLVXJH2.js} +132 -4
  67. package/dist/chunk-RQLVXJH2.js.map +1 -0
  68. package/dist/{chunk-JQOKQKQT.js → chunk-S2D5PWAO.js} +2 -2
  69. package/dist/{chunk-JJJJ2RAD.js → chunk-T4EKNX2Q.js} +71 -11
  70. package/dist/chunk-T4EKNX2Q.js.map +1 -0
  71. package/dist/{chunk-GWQVYGRD.js → chunk-TERYL7JH.js} +118 -78
  72. package/dist/chunk-TERYL7JH.js.map +1 -0
  73. package/dist/chunk-UC27MQ3T.js +1920 -0
  74. package/dist/chunk-UC27MQ3T.js.map +1 -0
  75. package/dist/chunk-UEA4NCY2.js +106 -0
  76. package/dist/chunk-UEA4NCY2.js.map +1 -0
  77. package/dist/{chunk-WXRPQICX.js → chunk-UK2IV2ZQ.js} +2 -2
  78. package/dist/{chunk-MFCZN253.js → chunk-UZCAYOIQ.js} +8 -10
  79. package/dist/{chunk-MFCZN253.js.map → chunk-UZCAYOIQ.js.map} +1 -1
  80. package/dist/{chunk-IKAGGJEO.js → chunk-V4UNYSZO.js} +558 -18
  81. package/dist/chunk-V4UNYSZO.js.map +1 -0
  82. package/dist/chunk-VAPCU2FX.js +70 -0
  83. package/dist/chunk-VAPCU2FX.js.map +1 -0
  84. package/dist/{chunk-Y2JGMICO.js → chunk-WGVU3LA5.js} +25 -33
  85. package/dist/chunk-WGVU3LA5.js.map +1 -0
  86. package/dist/{chunk-UNRR4KH5.js → chunk-WQ3F4O7U.js} +20 -14
  87. package/dist/chunk-WQ3F4O7U.js.map +1 -0
  88. package/dist/chunk-XNS4I3W6.js +102 -0
  89. package/dist/chunk-XNS4I3W6.js.map +1 -0
  90. package/dist/{chunk-LDVXYN6F.js → chunk-Y4I7ZCAE.js} +178 -135
  91. package/dist/chunk-Y4I7ZCAE.js.map +1 -0
  92. package/dist/{chunk-6I3RY6R5.js → chunk-ZKMSHLXP.js} +11 -15
  93. package/dist/{chunk-6I3RY6R5.js.map → chunk-ZKMSHLXP.js.map} +1 -1
  94. package/dist/{compile-SDOASKGL.js → compile-B2QG6BAQ.js} +37 -54
  95. package/dist/{compile-SDOASKGL.js.map → compile-B2QG6BAQ.js.map} +1 -1
  96. package/dist/{config-4VZTVZKF.js → config-D3F6ICZ2.js} +21 -39
  97. package/dist/{config-4VZTVZKF.js.map → config-D3F6ICZ2.js.map} +1 -1
  98. package/dist/cursor-local-install-4HDIBX22.js +94 -0
  99. package/dist/cursor-local-install-4HDIBX22.js.map +1 -0
  100. package/dist/cursor-local-install-LL367GZY.js +94 -0
  101. package/dist/cursor-local-install-LL367GZY.js.map +1 -0
  102. package/dist/{doctor-HH6CFBRQ.js → doctor-QSGETVDE.js} +19 -23
  103. package/dist/doctor-QSGETVDE.js.map +1 -0
  104. package/dist/{environment-K7YMJJYN.js → environment-2JS4RWQA.js} +69 -88
  105. package/dist/environment-2JS4RWQA.js.map +1 -0
  106. package/dist/{github-A6TYG7WS.js → github-JXSTHLY2.js} +14 -15
  107. package/dist/{github-A6TYG7WS.js.map → github-JXSTHLY2.js.map} +1 -1
  108. package/dist/{harness-772XBFZQ.js → harness-GBI3AMLH.js} +48 -65
  109. package/dist/{harness-772XBFZQ.js.map → harness-GBI3AMLH.js.map} +1 -1
  110. package/dist/{help-QR4VTJZU.js → help-EC52ERIE.js} +43 -52
  111. package/dist/help-EC52ERIE.js.map +1 -0
  112. package/dist/{help-TLHNRJJ6.js → help-VIRMBOPJ.js} +73 -551
  113. package/dist/help-VIRMBOPJ.js.map +1 -0
  114. package/dist/host-plugin-view-kept-XKHD6NGU.js +139 -0
  115. package/dist/host-plugin-view-kept-XKHD6NGU.js.map +1 -0
  116. package/dist/index.d.ts +7 -0
  117. package/dist/index.js +10 -22
  118. package/dist/{init-AOKFPZHG.js → init-OK3K6ILG.js} +49 -70
  119. package/dist/init-OK3K6ILG.js.map +1 -0
  120. package/dist/live-read-cache-ESQQJBNS.js +13 -0
  121. package/dist/live-read-cache-WPUFHVMZ.js +12 -0
  122. package/dist/{lock-INAXNLMC.js → lock-AA2F4I3K.js} +13 -16
  123. package/dist/{lock-INAXNLMC.js.map → lock-AA2F4I3K.js.map} +1 -1
  124. package/dist/{marketplace-TUVLLPBG.js → marketplace-QUYCV23F.js} +75 -94
  125. package/dist/marketplace-QUYCV23F.js.map +1 -0
  126. package/dist/{mcp-MMWGRASN.js → mcp-CIHSR4DD.js} +35 -52
  127. package/dist/{mcp-MMWGRASN.js.map → mcp-CIHSR4DD.js.map} +1 -1
  128. package/dist/{migrate-55S4XODX.js → migrate-TQPEZYS5.js} +148 -74
  129. package/dist/migrate-TQPEZYS5.js.map +1 -0
  130. package/dist/notifications-TAELTPDW.js +154 -0
  131. package/dist/notifications-TAELTPDW.js.map +1 -0
  132. package/dist/open-D3GWGDSQ.js +20 -0
  133. package/dist/{pack-VZIBS42E.js → pack-VUO4UBWL.js} +12 -22
  134. package/dist/{pack-VZIBS42E.js.map → pack-VUO4UBWL.js.map} +1 -1
  135. package/dist/plugin-L3466DHK.js +47 -0
  136. package/dist/plugin-from-project-U5UGKTJH.js +15 -0
  137. package/dist/plugin-from-project-U5UGKTJH.js.map +1 -0
  138. package/dist/{policy-P3HGLEZS.js → policy-Z5TL4N3V.js} +11 -15
  139. package/dist/{policy-P3HGLEZS.js.map → policy-Z5TL4N3V.js.map} +1 -1
  140. package/dist/{profile-STS3CZUK.js → profile-QFI7SL3S.js} +167 -143
  141. package/dist/profile-QFI7SL3S.js.map +1 -0
  142. package/dist/{project-R4DGM3ZG.js → project-3KR3EPYR.js} +506 -94
  143. package/dist/project-3KR3EPYR.js.map +1 -0
  144. package/dist/{resource-GJVEDXVZ.js → resource-45BPRQ7V.js} +66 -63
  145. package/dist/resource-45BPRQ7V.js.map +1 -0
  146. package/dist/status-refresh-worker.js +1155 -0
  147. package/dist/status-refresh-worker.js.map +1 -0
  148. package/dist/{version-FUHV4O6U.js → version-QUJZGTZ5.js} +3 -3
  149. package/dist/version-QUJZGTZ5.js.map +1 -0
  150. package/package.json +17 -11
  151. package/dist/apply-Q5SFF3FY.js +0 -67
  152. package/dist/chunk-24V5ZSIF.js +0 -658
  153. package/dist/chunk-24V5ZSIF.js.map +0 -1
  154. package/dist/chunk-2H7UOFLK.js +0 -11
  155. package/dist/chunk-3JOPDYQD.js +0 -730
  156. package/dist/chunk-3JOPDYQD.js.map +0 -1
  157. package/dist/chunk-555XE3NJ.js +0 -60
  158. package/dist/chunk-555XE3NJ.js.map +0 -1
  159. package/dist/chunk-64R32MG2.js.map +0 -1
  160. package/dist/chunk-6JMVGKMD.js.map +0 -1
  161. package/dist/chunk-6ZWKF3YZ.js +0 -7795
  162. package/dist/chunk-6ZWKF3YZ.js.map +0 -1
  163. package/dist/chunk-AFKCNFPP.js.map +0 -1
  164. package/dist/chunk-AUWWL6KX.js +0 -296
  165. package/dist/chunk-AUWWL6KX.js.map +0 -1
  166. package/dist/chunk-AVZOFMJX.js.map +0 -1
  167. package/dist/chunk-CZ4T75PP.js.map +0 -1
  168. package/dist/chunk-FUV7QYBS.js.map +0 -1
  169. package/dist/chunk-GWQVYGRD.js.map +0 -1
  170. package/dist/chunk-HENOKIBB.js +0 -346
  171. package/dist/chunk-HENOKIBB.js.map +0 -1
  172. package/dist/chunk-HWL67OCJ.js +0 -238
  173. package/dist/chunk-HWL67OCJ.js.map +0 -1
  174. package/dist/chunk-IKAGGJEO.js.map +0 -1
  175. package/dist/chunk-JJJJ2RAD.js.map +0 -1
  176. package/dist/chunk-JRFUTIEH.js +0 -426
  177. package/dist/chunk-JRFUTIEH.js.map +0 -1
  178. package/dist/chunk-KJIFZLHN.js +0 -11066
  179. package/dist/chunk-KJIFZLHN.js.map +0 -1
  180. package/dist/chunk-LDVXYN6F.js.map +0 -1
  181. package/dist/chunk-MHOTXMD2.js +0 -430
  182. package/dist/chunk-MHOTXMD2.js.map +0 -1
  183. package/dist/chunk-NAGAJ5UM.js +0 -145
  184. package/dist/chunk-NAGAJ5UM.js.map +0 -1
  185. package/dist/chunk-NEPUP33Q.js +0 -35
  186. package/dist/chunk-NEPUP33Q.js.map +0 -1
  187. package/dist/chunk-OPVIX7E4.js.map +0 -1
  188. package/dist/chunk-OQ4KBUN2.js.map +0 -1
  189. package/dist/chunk-OXVCYRZB.js +0 -491
  190. package/dist/chunk-OXVCYRZB.js.map +0 -1
  191. package/dist/chunk-PJQAMC6L.js +0 -183
  192. package/dist/chunk-PJQAMC6L.js.map +0 -1
  193. package/dist/chunk-PW5QXRBA.js +0 -1173
  194. package/dist/chunk-PW5QXRBA.js.map +0 -1
  195. package/dist/chunk-QNAIDM6W.js.map +0 -1
  196. package/dist/chunk-R4PTE774.js.map +0 -1
  197. package/dist/chunk-S2E4KSYW.js +0 -610
  198. package/dist/chunk-S2E4KSYW.js.map +0 -1
  199. package/dist/chunk-SNVAMWB7.js +0 -40
  200. package/dist/chunk-SNVAMWB7.js.map +0 -1
  201. package/dist/chunk-TQ2NA4Z4.js.map +0 -1
  202. package/dist/chunk-U472S6IB.js.map +0 -1
  203. package/dist/chunk-UEHDEADL.js.map +0 -1
  204. package/dist/chunk-UNRR4KH5.js.map +0 -1
  205. package/dist/chunk-VQVUJYYY.js.map +0 -1
  206. package/dist/chunk-XGTTOO4R.js +0 -84
  207. package/dist/chunk-XGTTOO4R.js.map +0 -1
  208. package/dist/chunk-XRXFJTAT.js.map +0 -1
  209. package/dist/chunk-Y2JGMICO.js.map +0 -1
  210. package/dist/chunk-YVJQ2QDG.js.map +0 -1
  211. package/dist/chunk-YX7MVSDA.js +0 -235
  212. package/dist/chunk-YX7MVSDA.js.map +0 -1
  213. package/dist/chunk-ZGRBIBO7.js +0 -681
  214. package/dist/chunk-ZGRBIBO7.js.map +0 -1
  215. package/dist/chunk-ZTBAMBAI.js +0 -6448
  216. package/dist/chunk-ZTBAMBAI.js.map +0 -1
  217. package/dist/chunk-ZVANUFPF.js +0 -1035
  218. package/dist/chunk-ZVANUFPF.js.map +0 -1
  219. package/dist/doctor-HH6CFBRQ.js.map +0 -1
  220. package/dist/environment-K7YMJJYN.js.map +0 -1
  221. package/dist/help-QR4VTJZU.js.map +0 -1
  222. package/dist/help-TLHNRJJ6.js.map +0 -1
  223. package/dist/init-AOKFPZHG.js.map +0 -1
  224. package/dist/marketplace-TUVLLPBG.js.map +0 -1
  225. package/dist/migrate-55S4XODX.js.map +0 -1
  226. package/dist/open-SLFQV45J.js +0 -32
  227. package/dist/plugin-WLEFFBRY.js +0 -64
  228. package/dist/plugin-from-project-UV2O364T.js +0 -16
  229. package/dist/profile-STS3CZUK.js.map +0 -1
  230. package/dist/project-R4DGM3ZG.js.map +0 -1
  231. package/dist/resource-GJVEDXVZ.js.map +0 -1
  232. /package/dist/{apply-Q5SFF3FY.js.map → apply-FTAIL3X3.js.map} +0 -0
  233. /package/dist/{chunk-IHW4PCDT.js.map → chunk-6FXJIKEG.js.map} +0 -0
  234. /package/dist/{chunk-IAZNF35S.js.map → chunk-CBSDMRMY.js.map} +0 -0
  235. /package/dist/{chunk-3EGM4IUI.js.map → chunk-EPXAOEBB.js.map} +0 -0
  236. /package/dist/{chunk-XCPWLGPB.js.map → chunk-K4UDZUJ2.js.map} +0 -0
  237. /package/dist/{chunk-FBYAIBHP.js.map → chunk-MHLAIGIM.js.map} +0 -0
  238. /package/dist/{chunk-2H7UOFLK.js.map → chunk-MKLJBW5N.js.map} +0 -0
  239. /package/dist/{chunk-BXSS2S4W.js.map → chunk-R27VZIF6.js.map} +0 -0
  240. /package/dist/{chunk-JQOKQKQT.js.map → chunk-S2D5PWAO.js.map} +0 -0
  241. /package/dist/{chunk-WXRPQICX.js.map → chunk-UK2IV2ZQ.js.map} +0 -0
  242. /package/dist/{open-SLFQV45J.js.map → live-read-cache-ESQQJBNS.js.map} +0 -0
  243. /package/dist/{plugin-WLEFFBRY.js.map → live-read-cache-WPUFHVMZ.js.map} +0 -0
  244. /package/dist/{plugin-from-project-UV2O364T.js.map → open-D3GWGDSQ.js.map} +0 -0
  245. /package/dist/{version-FUHV4O6U.js.map → plugin-L3466DHK.js.map} +0 -0
@@ -1,11 +1,12 @@
1
1
  #!/usr/bin/env node
2
- import "./chunk-SNVAMWB7.js";
3
2
  import {
4
- PACKAGE_VERSION
5
- } from "./chunk-UNRR4KH5.js";
3
+ ui
4
+ } from "./chunk-Y4I7ZCAE.js";
5
+ import "./chunk-UEA4NCY2.js";
6
6
  import {
7
- __export
8
- } from "./chunk-2H7UOFLK.js";
7
+ PACKAGE_VERSION
8
+ } from "./chunk-WQ3F4O7U.js";
9
+ import "./chunk-MKLJBW5N.js";
9
10
 
10
11
  // src/services/cli-help-registry.ts
11
12
  var COMMAND_HELP_REGISTRY = {
@@ -51,7 +52,7 @@ var COMMAND_HELP_REGISTRY = {
51
52
  ]
52
53
  },
53
54
  mirror: {
54
- description: "Mirror alias harness outputs from the main harness on-disk configuration",
55
+ description: "Mirror the other harness outputs from the first registered harness on-disk configuration",
55
56
  examples: [
56
57
  "mirror",
57
58
  "mirror . --dry-run",
@@ -268,6 +269,7 @@ var COMMAND_HELP_REGISTRY = {
268
269
  examples: [
269
270
  "plugin edit my-plugin",
270
271
  "plugin edit my-plugin --add skill:caveman",
272
+ "plugin edit backend-qa --hide skill:review",
271
273
  "plugin edit my-plugin --environment dev"
272
274
  ]
273
275
  },
@@ -335,7 +337,9 @@ var COMMAND_HELP_REGISTRY = {
335
337
  examples: [
336
338
  "plugin publish my-plugin",
337
339
  "plugin publish my-plugin acme/default",
338
- "plugin publish my-plugin --version 1.1.0"
340
+ "plugin publish my-plugin --version 1.1.0",
341
+ "plugin publish my-plugin --strict",
342
+ "plugin publish my-plugin --vendor-extensions"
339
343
  ]
340
344
  },
341
345
  "plugin.pull": {
@@ -359,8 +363,17 @@ var COMMAND_HELP_REGISTRY = {
359
363
  "plugin diff my-plugin ./export.ap.json"
360
364
  ]
361
365
  },
366
+ "plugin.validate": {
367
+ description: "Load an Agent Plugins 1.0.0 package and report what would load",
368
+ details: "Reads a plugin directory, zip, or .ap.json envelope. Unknown manifest fields are reported and ignored. Invalid skills and MCP servers are skipped. A bad mcp.json disables MCP and keeps the skills. Exit 1 only when the plugin itself is rejected.",
369
+ examples: [
370
+ "plugin validate ./my-plugin --spec 1.0.0",
371
+ "plugin validate ./my-plugin --format json"
372
+ ]
373
+ },
362
374
  "plugin.doctor": {
363
375
  description: "Run doctor checks against a plugin",
376
+ details: "For an imported plugin, skipped-files re-reads the installed package and fails for each file the import skipped. The output lists imported of discovered resources per type. Exit 1 when the plugin is invalid.",
364
377
  examples: [
365
378
  "plugin doctor my-plugin",
366
379
  "plugin doctor my-plugin --format json"
@@ -368,7 +381,7 @@ var COMMAND_HELP_REGISTRY = {
368
381
  },
369
382
  "plugin.check": {
370
383
  description: "Compare library working heads to marketplace, git, and catalog origins",
371
- details: "Omit a name to check every syncable working head. --refresh force-fetches origins. Outdated is not a failure; exit 1 only when a check row is error.",
384
+ details: "Omit a name to check every syncable working head. --refresh force-fetches origins. Also checks upstream links and pulled catalog packages for newer versions and stores the answer for ht status and Desktop; a newer major shows as major and is never installed automatically. Outdated is not a failure; exit 1 only when a check row is error.",
372
385
  examples: [
373
386
  "plugin check",
374
387
  "plugin check my-plugin --refresh",
@@ -377,13 +390,40 @@ var COMMAND_HELP_REGISTRY = {
377
390
  },
378
391
  "plugin.update": {
379
392
  description: "Update library working heads from marketplace, git, and catalog origins",
380
- details: "Pass a plugin name or --all. --all confirms on TTY unless --yes; non-interactive --all requires --yes. --force reapplies when fingerprints already match.",
393
+ details: "Pass a plugin name or --all. --all confirms on TTY unless --yes; non-interactive --all requires --yes. --force reapplies when fingerprints already match. Waits while the Desktop sidecar runs a scheduled check or install. After the first successful --all in a terminal, asks once whether to keep plugins up to date.",
381
394
  examples: [
382
395
  "plugin update my-plugin",
383
396
  "plugin update --all --yes",
384
397
  "plugin update --all --yes --format json"
385
398
  ]
386
399
  },
400
+ "notifications.list": {
401
+ description: "List plugin update notifications (unread by default); same as ht notifications",
402
+ details: "Notifications are written when a check finds a new version, when a parent plugin publishes, when install mode updates a plugin, and when checks keep failing. The same version is never notified twice. --all includes read ones. Nothing is deleted unless you run prune.",
403
+ examples: [
404
+ "notifications",
405
+ "notifications list --all --format json"
406
+ ]
407
+ },
408
+ "notifications.read": {
409
+ description: "Mark a notification, or all of them, as read",
410
+ examples: ["notifications read 01J9Z8K3M2", "notifications read --all"]
411
+ },
412
+ "notifications.prune": {
413
+ description: "Delete read notifications older than an age, after confirmation",
414
+ details: "Only read notifications are deleted; unread ones are kept. Asks before deleting in a terminal; pass --yes otherwise.",
415
+ examples: ["notifications prune --older-than 90d", "notifications prune --older-than 2w --yes"]
416
+ },
417
+ "plugin.auto-update": {
418
+ description: "Show or change how plugin updates are checked and installed",
419
+ details: "With no options, prints the current setting. --mode off stops background checks; notify (the default) shows updates in ht status and Desktop; install also installs minor and patch versions inside the range for pulled catalog plugins, never a major. --frequency is hourly, daily (the default) or weekly. Stored under updates in ~/.harnesstap/config.jsonc.",
420
+ examples: [
421
+ "plugin auto-update",
422
+ "plugin auto-update --mode install --frequency weekly",
423
+ "plugin auto-update --mode off",
424
+ "plugin auto-update --format json"
425
+ ]
426
+ },
387
427
  "plugin.cut": {
388
428
  description: "Cut a new local version from the working head",
389
429
  examples: [
@@ -508,6 +548,17 @@ var COMMAND_HELP_REGISTRY = {
508
548
  "profile delete work --plugin -y"
509
549
  ]
510
550
  },
551
+ "profile.duplicate": {
552
+ description: "Duplicate a profile, kept in sync with it or as a separate copy",
553
+ examples: [
554
+ "profile duplicate backend backend-qa",
555
+ "profile duplicate backend backend-copy --copy"
556
+ ]
557
+ },
558
+ "profile.detach": {
559
+ description: "Stop keeping a profile in sync: its current items become its own (Library only)",
560
+ examples: ["profile detach backend-qa"]
561
+ },
511
562
  "profile.pull": {
512
563
  description: "Pull a profile plugin from catalog",
513
564
  examples: [
@@ -580,15 +631,19 @@ var COMMAND_HELP_REGISTRY = {
580
631
  "migrate export backup.tar.gz --workspace",
581
632
  "migrate export --plugin my-plugin -o ./my-plugin",
582
633
  "migrate export --plugin my-plugin --single-file -o my-plugin.ap.json",
634
+ "migrate export --plugin my-plugin --archive -o my-plugin.zip",
635
+ "migrate export --plugin my-plugin --vendor-extensions -o ./my-plugin",
583
636
  "migrate export --resource skill:caveman"
584
637
  ]
585
638
  },
586
639
  "migrate.import": {
587
640
  description: "Import a package directory, .ap.json envelope, or .tar.gz workspace archive",
641
+ details: "A plugin import lists every file it skips (missing or invalid SKILL.md frontmatter, an invalid mcp.json server, root rules/, instructions/ or mcp-servers/ directories) with its path and reason, and prints imported of discovered resources per type. --strict refuses such a package and exits 1; it is the default when the terminal is not interactive. --no-strict imports the rest anyway.",
588
642
  examples: [
589
643
  "migrate import backup.tar.gz",
590
644
  "migrate import ./my-plugin",
591
- "migrate import my-plugin.ap.json"
645
+ "migrate import my-plugin.ap.json",
646
+ "migrate import ./my-plugin --no-strict"
592
647
  ]
593
648
  },
594
649
  "migrate.resolve-order": {
@@ -786,546 +841,6 @@ function getCommandHelpEntry(cmd) {
786
841
  return COMMAND_HELP_REGISTRY[resolveCommandHelpPath(cmd)];
787
842
  }
788
843
 
789
- // src/ui/format.ts
790
- var format_exports = {};
791
- __export(format_exports, {
792
- formatAbsoluteTime: () => formatAbsoluteTime,
793
- formatCount: () => formatCount,
794
- formatRelativeTime: () => formatRelativeTime,
795
- formatRelativeTimeWithAbsolute: () => formatRelativeTimeWithAbsolute,
796
- shortenId: () => shortenId,
797
- truncate: () => truncate
798
- });
799
-
800
- // src/copy/plurals.ts
801
- function formatCount(count, noun, plural = `${noun}s`) {
802
- return `${count} ${count === 1 ? noun : plural}`;
803
- }
804
-
805
- // src/ui/format.ts
806
- function truncate(value, width) {
807
- if (value.length <= width) return value;
808
- if (width <= 3) return ".".repeat(Math.max(1, width));
809
- return `${value.slice(0, width - 3)}...`;
810
- }
811
- function shortenId(value) {
812
- if (value.length <= 10) return value;
813
- return `${value.slice(0, 4)}...${value.slice(-4)}`;
814
- }
815
- function formatAbsoluteTime(value, options) {
816
- const date = value instanceof Date ? value : new Date(value);
817
- if (options?.includeTime) {
818
- return date.toISOString().slice(0, 19).replace("T", " ");
819
- }
820
- return date.toISOString().slice(0, 10);
821
- }
822
- function formatRelativeTime(value) {
823
- const date = value instanceof Date ? value : new Date(value);
824
- const diffMs = Date.now() - date.getTime();
825
- const minute = 6e4;
826
- const hour = 60 * minute;
827
- const day = 24 * hour;
828
- if (diffMs < minute) {
829
- return `${formatCount(Math.max(1, Math.floor(diffMs / 1e3)), "second")} ago`;
830
- }
831
- if (diffMs < hour) {
832
- return `${formatCount(Math.floor(diffMs / minute), "minute")} ago`;
833
- }
834
- if (diffMs < day) {
835
- return `${formatCount(Math.floor(diffMs / hour), "hour")} ago`;
836
- }
837
- if (diffMs <= 30 * day) {
838
- return `${formatCount(Math.floor(diffMs / day), "day")} ago`;
839
- }
840
- return formatAbsoluteTime(date);
841
- }
842
- function formatRelativeTimeWithAbsolute(value) {
843
- const relative = formatRelativeTime(value);
844
- const absolute = formatAbsoluteTime(value, { includeTime: true });
845
- if (relative === absolute) return relative;
846
- return `${relative} (${absolute})`;
847
- }
848
-
849
- // src/ui/theme.ts
850
- import chalk from "chalk";
851
- function colorEnabled() {
852
- return !process.env.NO_COLOR && chalk.level > 0;
853
- }
854
- function maybe(style) {
855
- return (value) => colorEnabled() ? style(value) : value;
856
- }
857
- var icons = {
858
- success: "\u2713",
859
- warn: "\u26A0",
860
- danger: "\u2717",
861
- hint: "\u2192",
862
- bullet: "\xB7",
863
- profile: "\u25CE",
864
- added: "+",
865
- removed: "\u2212",
866
- modified: "~"
867
- };
868
- var resourceTypeStyles = {
869
- instruction: maybe((value) => chalk.hex("#60a5fa")(value)),
870
- skill: maybe((value) => chalk.hex("#34d399")(value)),
871
- rule: maybe((value) => chalk.hex("#fbbf24")(value)),
872
- mcp_server: maybe((value) => chalk.hex("#a78bfa")(value)),
873
- permission: maybe((value) => chalk.hex("#f87171")(value)),
874
- hook: maybe((value) => chalk.hex("#fb923c")(value)),
875
- agent: maybe((value) => chalk.hex("#c084fc")(value)),
876
- command: maybe((value) => chalk.hex("#2dd4bf")(value)),
877
- env_var: maybe((value) => chalk.hex("#94a3b8")(value)),
878
- model_config: maybe((value) => chalk.hex("#e879f9")(value))
879
- };
880
- var mutedStyle = maybe((value) => chalk.hex("#6b7280")(value));
881
- function styleResourceType(value) {
882
- const style = resourceTypeStyles[value];
883
- return style ? style(value) : mutedStyle(value);
884
- }
885
- var theme = {
886
- // Existing tokens for backward compatibility
887
- primary: maybe((value) => chalk.bold(value)),
888
- accent: maybe((value) => chalk.hex("#3b82f6")(value)),
889
- muted: mutedStyle,
890
- success: maybe((value) => chalk.hex("#14b8a6")(value)),
891
- warn: maybe((value) => chalk.hex("#e6b84d")(value)),
892
- danger: maybe((value) => chalk.hex("#ef4444")(value)),
893
- badge: maybe((value) => chalk.bgHex("#3b82f6").white.bold(` ${value} `)),
894
- // Role-based tokens
895
- heading: maybe((value) => chalk.bold.hex("#3b82f6")(value)),
896
- label: maybe((value) => chalk.hex("#6b7280")(value)),
897
- command: maybe((value) => chalk.hex("#14b8a6")(value)),
898
- flag: maybe((value) => chalk.hex("#3b82f6")(value)),
899
- entity: maybe((value) => chalk.hex("#e6b84d")(value)),
900
- path: maybe((value) => chalk.hex("#8b5cf6")(value)),
901
- info: maybe((value) => chalk.hex("#6b7280")(value)),
902
- border: maybe((value) => chalk.hex("#374151")(value)),
903
- resourceType: styleResourceType
904
- };
905
- function disableColor() {
906
- process.env.NO_COLOR = "1";
907
- chalk.level = 0;
908
- }
909
- function isTty() {
910
- return process.stdout.isTTY === true;
911
- }
912
- function terminalColumns() {
913
- return process.stdout.columns ?? 80;
914
- }
915
- function getTableChars() {
916
- return isTty() && !process.env.NO_COLOR ? {} : {
917
- top: "-",
918
- "top-mid": "+",
919
- "top-left": "+",
920
- "top-right": "+",
921
- bottom: "-",
922
- "bottom-mid": "+",
923
- "bottom-left": "+",
924
- "bottom-right": "+",
925
- left: "|",
926
- "left-mid": "+",
927
- mid: "-",
928
- "mid-mid": "+",
929
- right: "|",
930
- "right-mid": "+",
931
- middle: "|"
932
- };
933
- }
934
-
935
- // src/ui/kv.ts
936
- function renderKv(key, value, keyWidth = 20, indent = 2) {
937
- const spaces = " ".repeat(indent);
938
- return `${spaces}${theme.muted(key.padEnd(keyWidth))} ${value}`;
939
- }
940
-
941
- // src/ui/table.ts
942
- import Table from "cli-table3";
943
- var OFF_TTY_TABLE_WIDTH = 100;
944
- function resolveTableMaxWidth(explicit) {
945
- if (explicit !== void 0) {
946
- return explicit;
947
- }
948
- if (isTty() && typeof process.stdout.columns === "number" && process.stdout.columns > 0) {
949
- return process.stdout.columns;
950
- }
951
- if (isTty()) {
952
- return terminalColumns();
953
- }
954
- return OFF_TTY_TABLE_WIDTH;
955
- }
956
- function truncateTableCell(value, width) {
957
- if (width <= 0) {
958
- return "";
959
- }
960
- if (value.length <= width) {
961
- return value;
962
- }
963
- if (width <= 3) {
964
- return value.slice(0, width);
965
- }
966
- return `${value.slice(0, width - 3)}...`;
967
- }
968
- function contentWidth(col, rows) {
969
- return Math.max(
970
- col.width,
971
- col.header.length,
972
- ...rows.map((row) => {
973
- const raw = String(row[col.key] ?? "");
974
- const transformed = col.transform ? col.transform(raw) : raw;
975
- return transformed.length;
976
- })
977
- );
978
- }
979
- function tableBorderOverhead(columnCount) {
980
- return columnCount + 1;
981
- }
982
- function computeColumnWidths(columns, rows, maxWidth) {
983
- const contentWidths = columns.map((col) => contentWidth(col, rows) + 2);
984
- if (maxWidth === void 0) {
985
- return contentWidths;
986
- }
987
- const overhead = tableBorderOverhead(columns.length);
988
- const available = Math.max(columns.length, maxWidth - overhead);
989
- const fitIndexes = columns.map((col, index) => col.fitContent ? index : -1).filter((index) => index >= 0);
990
- const flexibleIndexes = columns.map((col, index) => col.fitContent ? -1 : index).filter((index) => index >= 0);
991
- const widths = contentWidths.slice();
992
- if (fitIndexes.length > 0) {
993
- for (const index of fitIndexes) {
994
- widths[index] = contentWidths[index] ?? 0;
995
- }
996
- }
997
- const fitTotal = fitIndexes.reduce((sum, index) => sum + (widths[index] ?? 0), 0);
998
- const flexibleBudget = Math.max(flexibleIndexes.length, available - fitTotal);
999
- if (flexibleIndexes.length === 0) {
1000
- return shrinkToAvailable(widths, columns, available);
1001
- }
1002
- const flexibleColumns = flexibleIndexes.map((index) => columns[index]);
1003
- const flexibleContent = flexibleIndexes.map((index) => contentWidths[index] ?? 0);
1004
- const flexibleWidths = allocateFlexibleColumnWidths(
1005
- flexibleColumns,
1006
- flexibleContent,
1007
- flexibleBudget
1008
- );
1009
- flexibleIndexes.forEach((columnIndex, innerIndex) => {
1010
- widths[columnIndex] = flexibleWidths[innerIndex] ?? widths[columnIndex] ?? 0;
1011
- });
1012
- return shrinkToAvailable(widths, columns, available);
1013
- }
1014
- function shrinkToAvailable(widths, columns, available) {
1015
- let allocated = widths.reduce((sum, width) => sum + width, 0);
1016
- if (allocated <= available) {
1017
- return widths;
1018
- }
1019
- let overflow = allocated - available;
1020
- for (let index = widths.length - 1; index >= 0 && overflow > 0; index--) {
1021
- if (columns[index]?.fitContent) {
1022
- continue;
1023
- }
1024
- const floor = columns[index]?.minWidth ?? 1;
1025
- const reducible = Math.max(0, (widths[index] ?? 0) - floor);
1026
- if (reducible <= 0) {
1027
- continue;
1028
- }
1029
- const take = Math.min(reducible, overflow);
1030
- widths[index] = (widths[index] ?? 0) - take;
1031
- overflow -= take;
1032
- }
1033
- for (let index = widths.length - 1; index >= 0 && overflow > 0; index--) {
1034
- const floor = 1;
1035
- const reducible = Math.max(0, (widths[index] ?? 0) - floor);
1036
- if (reducible <= 0) {
1037
- continue;
1038
- }
1039
- const take = Math.min(reducible, overflow);
1040
- widths[index] = (widths[index] ?? 0) - take;
1041
- overflow -= take;
1042
- }
1043
- return widths;
1044
- }
1045
- function allocateFlexibleColumnWidths(columns, contentWidths, available) {
1046
- if (columns.length === 0) {
1047
- return [];
1048
- }
1049
- const hasWidthShare = columns.some((col) => col.widthShare !== void 0);
1050
- if (hasWidthShare) {
1051
- const floors = columns.map((col) => col.minWidth ?? 0);
1052
- const shareSum = columns.reduce((sum, col) => sum + (col.widthShare ?? 0), 0);
1053
- const widths2 = columns.map((col, index) => {
1054
- const share = shareSum > 0 ? (col.widthShare ?? 0) / shareSum : 1 / columns.length;
1055
- return Math.max(floors[index] ?? 0, Math.floor(available * share));
1056
- });
1057
- let allocated2 = widths2.reduce((sum, width) => sum + width, 0);
1058
- if (allocated2 > available) {
1059
- let overflow = allocated2 - available;
1060
- for (let index = widths2.length - 1; index >= 0 && overflow > 0; index--) {
1061
- const reducible = (widths2[index] ?? 0) - (floors[index] ?? 0);
1062
- if (reducible <= 0) {
1063
- continue;
1064
- }
1065
- const take = Math.min(reducible, overflow);
1066
- widths2[index] = (widths2[index] ?? 0) - take;
1067
- overflow -= take;
1068
- }
1069
- allocated2 = widths2.reduce((sum, width) => sum + width, 0);
1070
- }
1071
- if (widths2.length > 0 && allocated2 < available) {
1072
- widths2[0] = (widths2[0] ?? 0) + available - allocated2;
1073
- }
1074
- return widths2;
1075
- }
1076
- const total = contentWidths.reduce((sum, width) => sum + width, 0);
1077
- if (total <= available) {
1078
- return contentWidths;
1079
- }
1080
- const minWidths = columns.map(
1081
- (col, index) => Math.min(col.width + 2, contentWidths[index] ?? col.width + 2)
1082
- );
1083
- const minTotal = minWidths.reduce((sum, width) => sum + width, 0);
1084
- if (minTotal >= available) {
1085
- let remaining = available;
1086
- return minWidths.map((width, index) => {
1087
- if (index === minWidths.length - 1) {
1088
- return remaining;
1089
- }
1090
- const capped = Math.min(width, remaining);
1091
- remaining -= capped;
1092
- return capped;
1093
- });
1094
- }
1095
- const extra = contentWidths.map((width, index) => width - (minWidths[index] ?? 0));
1096
- const extraTotal = extra.reduce((sum, width) => sum + width, 0);
1097
- const budget = available - minTotal;
1098
- const widths = minWidths.map((min, index) => {
1099
- if (extraTotal === 0) {
1100
- return min;
1101
- }
1102
- return min + Math.floor(budget * (extra[index] ?? 0) / extraTotal);
1103
- });
1104
- const allocated = widths.reduce((sum, width) => sum + width, 0);
1105
- if (widths.length > 0) {
1106
- widths[0] = (widths[0] ?? 0) + available - allocated;
1107
- }
1108
- return widths;
1109
- }
1110
- function renderTable({
1111
- columns,
1112
- rows,
1113
- summary,
1114
- empty,
1115
- maxWidth,
1116
- wordWrap,
1117
- wrapOnWordBoundary
1118
- }) {
1119
- if (rows.length === 0 && empty) {
1120
- return empty;
1121
- }
1122
- const resolvedMaxWidth = resolveTableMaxWidth(maxWidth);
1123
- const colWidths = computeColumnWidths(columns, rows, resolvedMaxWidth);
1124
- const t = new Table({
1125
- head: columns.map((col) => theme.heading(col.header)),
1126
- colWidths,
1127
- chars: getTableChars(),
1128
- style: { head: [], border: [] },
1129
- ...wordWrap !== void 0 ? { wordWrap } : {},
1130
- ...wrapOnWordBoundary !== void 0 ? { wrapOnWordBoundary } : {}
1131
- });
1132
- for (const row of rows) {
1133
- t.push(
1134
- columns.map((col, index) => {
1135
- const raw = String(row[col.key] ?? "");
1136
- const transformed = col.transform ? col.transform(raw) : raw;
1137
- const innerWidth = Math.max(0, (colWidths[index] ?? col.width) - 2);
1138
- const clipOverflow = Boolean(col.truncate) || Boolean(col.fitContent) || !wordWrap;
1139
- const clipped = clipOverflow ? truncateTableCell(transformed, innerWidth) : transformed;
1140
- const content = col.style ? col.style(clipped) : clipped;
1141
- if (col.wrapOnWordBoundary === false) {
1142
- return { content, wrapOnWordBoundary: false };
1143
- }
1144
- return content;
1145
- })
1146
- );
1147
- }
1148
- const lines = [t.toString()];
1149
- if (summary) {
1150
- lines.push("");
1151
- lines.push(theme.info(summary));
1152
- }
1153
- return lines.join("\n");
1154
- }
1155
- var table = {
1156
- render: renderTable,
1157
- print: (opts) => console.log(renderTable(opts))
1158
- };
1159
-
1160
- // src/ui/panel.ts
1161
- function renderPanelTitle(parts) {
1162
- const [head, ...rest] = parts;
1163
- return rest.length === 0 ? theme.primary(head ?? "") : `${theme.primary(head ?? "")} ${rest.map((p) => theme.muted(p)).join(" ")}`;
1164
- }
1165
- function renderPanel(opts) {
1166
- const lines = [renderPanelTitle(opts.title)];
1167
- for (const [key, value] of opts.rows) {
1168
- lines.push(renderKv(key, value));
1169
- }
1170
- return lines.join("\n");
1171
- }
1172
- function panel(opts) {
1173
- console.log(renderPanel(opts));
1174
- }
1175
- function kvBlock(rows, opts) {
1176
- for (const row of rows) {
1177
- console.log(renderKv(row.key, row.value, opts?.keyWidth, opts?.indent));
1178
- }
1179
- }
1180
-
1181
- // src/ui/diff.ts
1182
- function renderDiffTable({ rows, title }) {
1183
- const lines = [];
1184
- if (title) {
1185
- lines.push(theme.primary(title));
1186
- }
1187
- for (const row of rows) {
1188
- lines.push(` ${theme.muted(row.key)}`);
1189
- lines.push(` ${theme.danger(`${icons.removed} ${row.before}`)}`);
1190
- lines.push(` ${theme.success(`${icons.added} ${row.after}`)}`);
1191
- }
1192
- return lines.join("\n");
1193
- }
1194
- var diffTable = {
1195
- render: renderDiffTable,
1196
- print: (opts) => console.log(renderDiffTable(opts))
1197
- };
1198
- function renderChangeList(changes) {
1199
- return changes.map((change) => {
1200
- const glyph = change.kind === "added" ? icons.added : change.kind === "removed" ? icons.removed : icons.modified;
1201
- const style = change.kind === "added" ? theme.success : change.kind === "removed" ? theme.danger : theme.warn;
1202
- return ` ${style(glyph)} ${change.scope.padEnd(10)} ${change.key.padEnd(28)} ${change.detail}`;
1203
- }).join("\n");
1204
- }
1205
-
1206
- // src/ui/progress.ts
1207
- import ora from "ora";
1208
- function createProgress(message) {
1209
- let spinner = null;
1210
- if (isTty() && process.env.NODE_ENV !== "test") {
1211
- spinner = ora(message).start();
1212
- }
1213
- return {
1214
- succeed(verdict) {
1215
- if (spinner) {
1216
- spinner.succeed(verdict);
1217
- spinner = null;
1218
- } else {
1219
- console.log(theme.success(`${icons.success} ${verdict}`));
1220
- }
1221
- },
1222
- fail(verdict) {
1223
- if (spinner) {
1224
- spinner.fail(verdict);
1225
- spinner = null;
1226
- } else {
1227
- console.error(theme.danger(`${icons.danger} ${verdict}`));
1228
- }
1229
- },
1230
- stop() {
1231
- spinner?.stop();
1232
- spinner = null;
1233
- },
1234
- update(message2) {
1235
- if (spinner) {
1236
- spinner.text = message2;
1237
- }
1238
- }
1239
- };
1240
- }
1241
- var progress = {
1242
- start: (message) => createProgress(message),
1243
- stop: () => {
1244
- },
1245
- succeed: (message) => {
1246
- console.log(theme.success(`${icons.success} ${message}`));
1247
- },
1248
- fail: (message) => {
1249
- console.error(theme.danger(`${icons.danger} ${message}`));
1250
- }
1251
- };
1252
-
1253
- // src/ui/status.ts
1254
- function line(icon, message) {
1255
- return `${icon} ${message}`;
1256
- }
1257
- function renderSuccess(message, opts) {
1258
- return opts?.hint ? `${theme.success(line(icons.success, message))}
1259
- ${theme.info(`${icons.hint} ${opts.hint}`)}` : theme.success(line(icons.success, message));
1260
- }
1261
- function renderWarn(message, opts) {
1262
- return opts?.hint ? `${theme.warn(line(icons.warn, message))}
1263
- ${theme.info(`${icons.hint} ${opts.hint}`)}` : theme.warn(line(icons.warn, message));
1264
- }
1265
- function renderDanger(message, opts) {
1266
- const hints = opts?.hints ?? (opts?.hint ? [opts.hint] : []);
1267
- const base = theme.danger(line(icons.danger, message));
1268
- if (hints.length === 0) {
1269
- return base;
1270
- }
1271
- return `${base}
1272
- ${hints.map((hint) => ` ${theme.info(`${icons.hint} ${hint}`)}`).join("\n")}`;
1273
- }
1274
- var status = {
1275
- success: (message, opts) => console.log(renderSuccess(message, opts)),
1276
- warn: (message, opts) => console.log(renderWarn(message, opts)),
1277
- danger: (message, opts) => console.error(renderDanger(message, opts)),
1278
- info: (message) => console.log(theme.info(message)),
1279
- dim: (message) => console.log(theme.info(message)),
1280
- hint: (message) => console.log(` ${theme.info(`${icons.hint} ${message}`)}`)
1281
- };
1282
-
1283
- // src/ui/section.ts
1284
- function renderHeader(title) {
1285
- return theme.heading(title);
1286
- }
1287
- function renderSubheader(title) {
1288
- return theme.label(title);
1289
- }
1290
- function renderRule() {
1291
- return theme.border("\u2500".repeat(terminalColumns()));
1292
- }
1293
- function header(title) {
1294
- console.log(renderHeader(title));
1295
- }
1296
- function subheader(title) {
1297
- console.log(renderSubheader(title));
1298
- }
1299
- function rule() {
1300
- console.log(renderRule());
1301
- }
1302
-
1303
- // src/ui/index.ts
1304
- var ui = {
1305
- format: format_exports,
1306
- icons,
1307
- theme,
1308
- header,
1309
- renderHeader,
1310
- subheader,
1311
- renderSubheader,
1312
- rule,
1313
- renderRule,
1314
- table,
1315
- renderTable,
1316
- panel,
1317
- renderPanel,
1318
- kvBlock,
1319
- renderKv,
1320
- diffTable,
1321
- renderDiffTable,
1322
- renderChangeList,
1323
- spinner: progress,
1324
- createProgress,
1325
- ...status,
1326
- disableColor
1327
- };
1328
-
1329
844
  // src/cli/command-catalog.ts
1330
845
  var COMMAND_CATALOG = [
1331
846
  {
@@ -1393,6 +908,12 @@ var COMMAND_CATALOG = [
1393
908
  kind: "group",
1394
909
  loader: "migrate"
1395
910
  },
911
+ {
912
+ name: "notifications",
913
+ description: "List and mark plugin update notifications",
914
+ kind: "group",
915
+ loader: "notifications"
916
+ },
1396
917
  {
1397
918
  name: "plugin",
1398
919
  aliases: ["l"],
@@ -1606,6 +1127,7 @@ var PLUGIN_HELP_LOCAL_COMMANDS = /* @__PURE__ */ new Set([
1606
1127
  "rollback",
1607
1128
  "diff",
1608
1129
  "doctor",
1130
+ "validate",
1609
1131
  "check",
1610
1132
  "update",
1611
1133
  "why",
@@ -1889,4 +1411,4 @@ export {
1889
1411
  renderRootHelpText,
1890
1412
  resolveCommandDescription
1891
1413
  };
1892
- //# sourceMappingURL=help-TLHNRJJ6.js.map
1414
+ //# sourceMappingURL=help-VIRMBOPJ.js.map